Skip to content

Commit

Permalink
chore: Only run Snyk daily on master. Fixes #1593 (#1596)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Collins <alex_collins@intuit.com>
  • Loading branch information
alexec authored Feb 4, 2022
1 parent 5d25d7e commit 6c640dd
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/snyk.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
name: Snyk
on: push
on:
schedule:
- cron: "30 2 * * *"
jobs:
security:
# we do not scan images here, they're scanned here: https://app.snyk.io/org/argoproj/projects

golang:
if: github.repository == 'argoproj/argo-events'
runs-on: ubuntu-latest
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/golang@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
with:
args: --severity-threshold=high

0 comments on commit 6c640dd

Please sign in to comment.