Skip to content

Commit d379ab7

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Github-Actions] Snyk Open Source. Modified. Sarif output enabled.
1 parent b78650a commit d379ab7

File tree

1 file changed

+9
-8
lines changed

1 file changed

+9
-8
lines changed

.github/workflows/snyk-code.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,19 +16,20 @@ on: # yamllint disable-line rule:truthy
1616
jobs:
1717
security:
1818
runs-on: ubuntu-latest
19-
permissions:
20-
actions: read
21-
contents: read
22-
security-events: write
19+
# permissions:
20+
# actions: read
21+
# contents: read
22+
# security-events: write
2323
steps:
2424
- uses: actions/checkout@master
25-
- uses: snyk/actions/setup@master
2625
- name: Run Snyk to check for vulnerabilities
27-
run: >
28-
snyk code test --sarif-file-output=snyk-code.sarif
26+
uses: snyk/actions/dotnet@master
27+
continue-on-error: true # To make sure that SARIF upload gets called
2928
env:
3029
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
30+
with:
31+
args: --sarif-file-output=snyk-code.sarif
3132
- name: Upload result to GitHub Code Scanning
3233
uses: github/codeql-action/upload-sarif@v3
3334
with:
34-
sarif_file: 'snyk-code.sarif'
35+
sarif_file: snyk-code.sarif

0 commit comments

Comments
 (0)