File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ name: Snyk scheduled test
2
2
on :
3
3
schedule :
4
4
- cron : ' 0 2 * * 1'
5
+ push :
6
+ branches :
7
+ - master
8
+
5
9
jobs :
6
10
security :
7
11
runs-on : ubuntu-latest
@@ -27,13 +31,15 @@ jobs:
27
31
run : >
28
32
snyk test
29
33
--configuration-matching='^runtimeClasspath$'
34
+ --fail-on=upgradable
30
35
--json-file-output=${{ env.REPORT_FILE }}
31
36
--org=radar-base
37
+ --policy-path=$PWD/.snyk
32
38
33
39
- name : Report new vulnerabilities
34
40
uses : thehyve/report-vulnerability@master
41
+ if : success() || failure()
35
42
with :
36
43
report-file : ${{ env.REPORT_FILE }}
37
44
env :
38
45
TOKEN : ${{ secrets.GITHUB_TOKEN }}
39
- if : ${{ failure() }}
Original file line number Diff line number Diff line change 3
3
pull_request :
4
4
branches :
5
5
- main
6
+
6
7
jobs :
7
8
security :
8
9
runs-on : ubuntu-latest
26
27
run : >
27
28
snyk test
28
29
--configuration-matching='^runtimeClasspath$'
29
- --fail-on=upgradable
30
30
--org=radar-base
31
- --severity-threshold=high
31
+ --policy-path=$PWD/.snyk
You can’t perform that action at this time.
0 commit comments