Skip to content

Commit

Permalink
Merge pull request #52 from trailofbits/mschwager-fix-validation
Browse files Browse the repository at this point in the history
Fix broken validation CI step
  • Loading branch information
mschwager committed Feb 8, 2024
2 parents 14898d8 + 4a41400 commit 81f98c4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/semgrep-rules-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,17 @@ jobs:
python3 -m pip install semgrep
python3 -m pip install jsonschema pyyaml
- name: validations
run: semgrep --validate --config .
run: |
config_args=$(
for dir in $(
find . -type d -maxdepth 1 -mindepth 1 -not -path '*/.*'
);
do
echo -n " --config $dir";
done
)
echo "Semgrep config arguments: $config_args"
semgrep scan --validate $config_args
- name: tests
run: semgrep --test --test-ignore-todo
- name: metadata-tests
Expand All @@ -29,4 +39,4 @@ jobs:
wget https://raw.githubusercontent.com/returntocorp/semgrep-rules/develop/metadata-schema.yaml.schm
python ./validate-metadata.py -s ./metadata-schema.yaml.schm -f .
- name: rules-tests
run: semgrep --config="r/yaml.semgrep" --severity ERROR .
run: semgrep scan --config="r/yaml.semgrep" --severity ERROR .

0 comments on commit 81f98c4

Please sign in to comment.