File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,19 +87,29 @@ jobs:
8787
8888 - name : Run Semgrep
8989 uses : returntocorp/semgrep-action@v1
90+ continue-on-error : true
9091 with :
9192 config : >-
9293 p/security-audit
9394 p/nodejs
9495 p/owasp-top-ten
9596 p/javascript
97+ generateSarif : true
98+
99+ - name : Generate JSON results
100+ if : always()
101+ continue-on-error : true
102+ run : |
103+ semgrep --config "p/security-audit" --config "p/nodejs" --config "p/owasp-top-ten" --config "p/javascript" --json --output semgrep-results.json . || echo "Semgrep scan completed"
96104
97105 - name : Upload Semgrep results
98106 if : always()
99107 uses : actions/upload-artifact@v4
100108 with :
101109 name : semgrep-results
102- path : semgrep-results.json
110+ path : |
111+ semgrep-results.json
112+ semgrep.sarif
103113
104114 # Stage 6: Dependency Scanning
105115 dependency-scan :
You can’t perform that action at this time.
0 commit comments