Skip to content

Commit

Permalink
Fix snyk permissions (#23)
Browse files Browse the repository at this point in the history
Signed-off-by: bytemare <3641580+bytemare@users.noreply.github.com>
  • Loading branch information
bytemare authored Mar 27, 2022
1 parent a147664 commit a5fb4d6
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/snyk.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
name: Snyk

on: push
on:
push:
branches: [ main ]
pull_request:
# The branches below must be a subset of the branches above
branches: [ main ]
schedule:
- cron: '31 10 * * 0'

permissions:
contents: read
Expand All @@ -17,7 +24,3 @@ jobs:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --sarif-file-output=snyk.sarif
- name: Upload result to GitHub Code Scanning
uses: github/codeql-action/upload-sarif@v1 # pin@v1
with:
sarif_file: snyk.sarif

0 comments on commit a5fb4d6

Please sign in to comment.