File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -85,19 +85,10 @@ jobs:
8585 - name : Checkout code
8686 uses : actions/checkout@v4
8787
88- - name : Run Semgrep
89- uses : returntocorp/semgrep-action@v1
90- continue-on-error : true
91- with :
92- config : >-
93- p/security-audit
94- p/nodejs
95- p/owasp-top-ten
96- p/javascript
97- generateSarif : true
98-
99- - name : Generate JSON results
100- if : always()
88+ - name : Install Semgrep
89+ run : pip3 install semgrep
90+
91+ - name : Run Semgrep scan
10192 continue-on-error : true
10293 run : |
10394 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"
10798 uses : actions/upload-artifact@v4
10899 with :
109100 name : semgrep-results
110- path : |
111- semgrep-results.json
112- semgrep.sarif
101+ path : semgrep-results.json
113102
114103 # Stage 6: Dependency Scanning
115104 dependency-scan :
You can’t perform that action at this time.
0 commit comments