Skip to content

Commit ad80b4d

Browse files
frack113swachchhanda000phantinuss
authored
Merge PR #5797 from @frack113 - ci: fix URL for sigma_schema_url
chore: fix URL for sigma_schema_url in validate.py --------- Co-authored-by: Swachchhanda Shrawan Poudel <87493836+swachchhanda000@users.noreply.github.com> Co-authored-by: phantinuss <79651203+phantinuss@users.noreply.github.com>
1 parent 797bcae commit ad80b4d

3 files changed

Lines changed: 5 additions & 257 deletions

File tree

.github/workflows/sigma-validation.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Validate Sigma rules
22

33
on: [push, pull_request, merge_group, workflow_dispatch]
44

5+
env:
6+
SIGMA_RULE_SCHEMA_VERSION: v2.1.0
7+
58
jobs:
69
sigma-rules-validator:
710
runs-on: ubuntu-latest
@@ -16,4 +19,4 @@ jobs:
1619
./rules-emerging-threats
1720
./rules-placeholder
1821
./rules-threat-hunting
19-
schemaFile: ${{ github.workspace }}/tests/validate-sigma-schema/sigma-schema.json
22+
schemaURL: https://raw.githubusercontent.com/SigmaHQ/sigma-specification/refs/tags/${{ env.SIGMA_RULE_SCHEMA_VERSION }}/json-schema/sigma-detection-rule-schema.json

tests/validate-sigma-schema/sigma-schema.json

Lines changed: 0 additions & 255 deletions
This file was deleted.

tests/validate-sigma-schema/validate.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ def get_envs() -> Dict[str, Any]:
4141
sigma_schema_file = os.environ.get("SIGMA_SCHEMA_FILE")
4242
sigma_schema_url = os.environ.get(
4343
"SIGMA_SCHEMA_URL",
44-
"https://raw.githubusercontent.com/SigmaHQ/sigma-specification/main/sigma-schema.json",
44+
"https://raw.githubusercontent.com/SigmaHQ/sigma-specification/refs/heads/main/json-schema/sigma-detection-rule-schema.json",
4545
)
4646

4747
return {

0 commit comments

Comments
 (0)