Skip to content

Commit d62575f

Browse files
kmcallorumclaude
andcommitted
fix: add SARIF output and permissions for Snyk workflow
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 635655e commit d62575f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/security.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ jobs:
3737

3838
snyk:
3939
runs-on: ubuntu-latest
40+
permissions:
41+
security-events: write
42+
contents: read
4043
steps:
4144
- uses: actions/checkout@v6
4245

@@ -56,7 +59,7 @@ jobs:
5659
env:
5760
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
5861
with:
59-
args: --severity-threshold=high
62+
args: --sarif-file-output=snyk.sarif --severity-threshold=high
6063

6164
- name: Upload Snyk results to GitHub Code Scanning
6265
uses: github/codeql-action/upload-sarif@v4

0 commit comments

Comments
 (0)