Skip to content

Commit 15e54aa

Browse files
committed
SAST job modified
1 parent 9c8eafe commit 15e54aa

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

.github/workflows/devsecops-pipeline.yml

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff 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:

0 commit comments

Comments
 (0)