Skip to content

Commit 01e2b53

Browse files
authored
Update Snyk GitHub action and restrict workflow permissions (#898)
1 parent 71a70b5 commit 01e2b53

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/snyk-scan.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read
12+
security-events: write
13+
1014
jobs:
1115
snyk-security:
1216
runs-on: ubuntu-latest
@@ -15,11 +19,12 @@ jobs:
1519
uses: actions/checkout@v4
1620

1721
- name: Run Snyk to check for vulnerabilities
18-
uses: snyk/actions/maven@master
22+
uses: snyk/actions/maven@cdb760004ba9ea4d525f2e043745dfe85bb9077e
1923
continue-on-error: true # To make sure that SARIF upload gets called
2024
env:
2125
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
2226
with:
27+
snyk-version: v1.1297.3
2328
args: --all-projects --sarif-file-output=snyk.sarif
2429

2530
- name: Check output file

0 commit comments

Comments
 (0)