Skip to content

Commit 7ae72bb

Browse files
authored
Update snyk-security.yml
Signed-off-by: David Osipov <[email protected]>
1 parent 662a0cb commit 7ae72bb

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/snyk-security.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ jobs:
6060
env:
6161
SNYK_TOKEN: ${{ secrets.SNYK_SECRET_TOKEN }}
6262
with:
63+
args: --sarif-file-output=snyk-vulnerabilities.sarif
6364
command: monitor
6465

6566

@@ -68,10 +69,12 @@ jobs:
6869
continue-on-error: true # To make sure that SARIF upload gets called
6970
env:
7071
SNYK_TOKEN: ${{ secrets.SNYK_SECRET_TOKEN }}
71-
run: snyk test --all-projects
72+
run: snyk test monitor --all-projects --sarif-file-output=snyk-SCA.sarif
7273

7374
# Push the Snyk Code results into GitHub Code Scanning tab
7475
- name: Upload result to GitHub Code Scanning
7576
uses: github/codeql-action/upload-sarif@6349095d19ec30397ffb02a63b7aa4f867deb563
77+
env:
78+
SNYK_TOKEN: ${{ secrets.SNYK_SECRET_TOKEN }}
7679
with:
77-
sarif_file: snyk-code.sarif
80+
sarif_file: snyk-vulnerabilities.sarif snyk-SCA.sarif

0 commit comments

Comments
 (0)