Skip to content

Commit 277caf8

Browse files
authored
Update semgrep job of security CI workflow. (#340)
* Update semgrep job of security CI workflow. Add new rulesets for semgrep. * Exclude 'gitlab.gosec' ruleset from semgrep CI job. Excluded because rules in this ruleset contain 'security-severity' field with a string type value, while SARIF format accepts only numerical. For more info see semgrep/semgrep#10834.
1 parent c023fe1 commit 277caf8

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/security.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,10 @@ jobs:
4444
- name: Run semgrep security scanner
4545
run: |
4646
cat << 'EOF' | bash
47-
semgrep ci --config=auto --sarif --output=semgrep.sarif --max-target-bytes=2MB
47+
semgrep ci --config="auto" --config="r/default" --config="r/go" --config="r/dgryski" \
48+
--config="r/trailofbits" --config="r/dockerfile" --config="r/bash" \
49+
--config="r/problem-based-packs" --config="r/generic" --config="r/yaml" --config="r/json" \
50+
--sarif --dataflow-traces --output=semgrep.sarif --max-target-bytes=2MB
4851
EXIT_CODE=$?
4952
if [ "$EXIT_CODE" = "0" ] || [ "$EXIT_CODE" = "1" ]
5053
then

0 commit comments

Comments
 (0)