Skip to content

Commit

Permalink
Fix broken validation CI step
Browse files Browse the repository at this point in the history
  • Loading branch information
mschwager committed Feb 6, 2024
1 parent 14898d8 commit fe794ca
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 directory -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 fe794ca

Please sign in to comment.