Skip to content

Commit 8f1bdea

Browse files
committed
Update sast.yml
1 parent d36ab96 commit 8f1bdea

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/sast.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ jobs:
3636
--severity=INFO \
3737
.
3838
continue-on-error: true
39+
40+
- name: Run Semgrep Searif
41+
run: |
42+
semgrep --config=auto \
43+
--sarif \
44+
--output=semgrep.sarif \
45+
--error \
46+
--severity=ERROR \
47+
--severity=WARNING \
48+
--severity=INFO \
49+
.
50+
continue-on-error: true
3951

4052
- name: Upload Semgrep results
4153
if: always()
@@ -44,6 +56,11 @@ jobs:
4456
name: semgrep-results
4557
path: semgrep-results.json
4658
retention-days: 14
59+
- name: Upload SARIF file for GitHub Advanced Security Dashboard
60+
uses: github/codeql-action/upload-sarif@v3
61+
with:
62+
sarif_file: semgrep.sarif
63+
if: always()
4764

4865
snyk:
4966
name: Snyk Security Scan

0 commit comments

Comments
 (0)