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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user