Skip to content

Commit

Permalink
Merge branch 'main' into Fix-unbounded-ellipsis-match-in-tar-insecure…
Browse files Browse the repository at this point in the history
…-flags-rule
  • Loading branch information
mschwager authored Feb 8, 2024
2 parents 64457d3 + 81f98c4 commit 1d65d9e
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 1d65d9e

Please sign in to comment.