Skip to content

Commit ba5c458

Browse files
author
Gonzalo Diaz
committed
[CONFIG] [Gihub Actions] Snyk Open Source analysis: enable sarif output
1 parent 23378d3 commit ba5c458

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.github/workflows/snyk-code.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,12 @@ on: # yamllint disable-line rule:truthy
1010

1111
jobs:
1212
security:
13+
name: Snyk Open Source (Node.js)
1314
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
1419
steps:
1520
- uses: actions/checkout@master
1621
- name: Run Snyk to check for vulnerabilities
@@ -19,10 +24,8 @@ jobs:
1924
env:
2025
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
2126
with:
22-
args: --sarif-file-output=snyk.sarif
23-
# yamllint disable rule:comments-indentation
24-
# - name: Upload result to GitHub Code Scanning
25-
# uses: github/codeql-action/upload-sarif@v2
26-
# with:
27-
# sarif_file: snyk.sarif
28-
# yamllint enable rule:comments-indentation
27+
args: --sarif-file-output=snyk-code.sarif
28+
- name: Upload result to GitHub Code Scanning
29+
uses: github/codeql-action/upload-sarif@v3
30+
with:
31+
sarif_file: 'snyk-code.sarif'

0 commit comments

Comments
 (0)