Merge PR #4769 from @mostafa - Update sigma validation workflow

chore: Add comment to the code
chore: Ignore inaccessible file
chore: Switch to using the action for validating Sigma rules

Thanks: @mostafa
This commit is contained in:
Mostafa Moradian
2024-03-15 11:03:15 +01:00
committed by GitHub
parent 250e7d7fa8
commit 416de03cdc
2 changed files with 11 additions and 13 deletions
+1 -12
View File
@@ -35,19 +35,8 @@ jobs:
validate-sigma-rules:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
run: pip install requests check-jsonschema
- name: Validate Sigma rules
run: |
echo "Validating Sigma rules against sigma-schema.json"
check-jsonschema --schemafile $(python tests/validate-sigma-schema/validate.py schema) $(python tests/validate-sigma-schema/validate.py rules)
uses: SigmaHQ/validate-sigma-rules@v0
env:
SIGMA_RULES_PATH: |-
./rules