-
Notifications
You must be signed in to change notification settings - Fork 1
51 lines (44 loc) · 1.4 KB
/
lint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
---
name: Lint Plugin
on: # yamllint disable-line rule:truthy
workflow_call:
jobs:
check-syntax:
runs-on: ubuntu-latest
strategy:
fail-fast: true
# check why is failing and change afterwards
steps:
- name: Checkout repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- name: Lint Yaml
uses: ibiqlik/action-yamllint@2576378a8e339169678f9939646ee3ee325e845c # v3
with:
format: github
file_or_dir: tests/regression
config_data: |
extends: default
rules:
new-line-at-end-of-file:
level: warning
trailing-spaces:
level: warning
line-length:
max: 1024
level: warning
indentation: disable
comments:
require-starting-space: true # default
min-spaces-from-content: 1
- name: Linelint
uses: fernandrone/linelint@master
id: linelint
- name: Set up Python 3
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
with:
python-version: 3.8
- name: "Check Plugin syntax"
run: |
pip install --upgrade setuptools
pip install secrules-parsing
secrules-parser -c -v --output-type github -f plugins/*.conf