Skip to content

Commit

Permalink
Adding daily scan github actions frequency, adding .snyk policy file (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
hectormachin authored Sep 19, 2023
1 parent 78674ed commit f7d8b89
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/snyk-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ on:
branches: ["main" ]
pull_request:
branches: ["main"]
schedule: # Run snyk scan daily at midnight
- cron: '0 0 * * *'

permissions:
contents: read
Expand Down Expand Up @@ -40,4 +42,7 @@ jobs:
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --severity-threshold=high # Forces fail on high-severity vulnerabilities
args:
--sarif-file-output=snyk.sarif
--policy-path=.snyk
--severity-threshold=high # Forces fail on high-severity vulnerabilities
6 changes: 6 additions & 0 deletions .snyk
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.22.1

ignore: {}

patch: {}

0 comments on commit f7d8b89

Please sign in to comment.