Skip to content

Commit c315d72

Browse files
committed
Update Snyk GA
1 parent 810b2cb commit c315d72

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/scheduled_snyk.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: Snyk scheduled test
22
on:
33
schedule:
44
- cron: '0 2 * * 1'
5+
push:
6+
branches:
7+
- master
8+
59
jobs:
610
security:
711
runs-on: ubuntu-latest
@@ -27,13 +31,15 @@ jobs:
2731
run: >
2832
snyk test
2933
--configuration-matching='^runtimeClasspath$'
34+
--fail-on=upgradable
3035
--json-file-output=${{ env.REPORT_FILE }}
3136
--org=radar-base
37+
--policy-path=$PWD/.snyk
3238
3339
- name: Report new vulnerabilities
3440
uses: thehyve/report-vulnerability@master
41+
if: success() || failure()
3542
with:
3643
report-file: ${{ env.REPORT_FILE }}
3744
env:
3845
TOKEN: ${{ secrets.GITHUB_TOKEN }}
39-
if: ${{ failure() }}

.github/workflows/snyk.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
pull_request:
44
branches:
55
- main
6+
67
jobs:
78
security:
89
runs-on: ubuntu-latest
@@ -26,6 +27,5 @@ jobs:
2627
run: >
2728
snyk test
2829
--configuration-matching='^runtimeClasspath$'
29-
--fail-on=upgradable
3030
--org=radar-base
31-
--severity-threshold=high
31+
--policy-path=$PWD/.snyk

0 commit comments

Comments
 (0)