File tree Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Expand file tree Collapse file tree 2 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 3
3
# any push on any protected branch: main, v6.8, releases/**
4
4
# any PR crteated against any protected branch: main, v6.8, releases/**
5
5
6
+ name : 🔬 Snyk CLI scan
7
+
6
8
on :
7
9
push :
8
10
branches : [ main ]
@@ -18,3 +20,13 @@ concurrency:
18
20
env :
19
21
SNYK_SEVERITY_THRESHOLD_LEVEL : critical
20
22
23
+ jobs :
24
+ # this is a workaround for the issue that github actions does not support status check on workflow level
25
+ skip-means-success :
26
+ if : ${{ failure() }}
27
+ runs-on : ubuntu-latest
28
+ steps :
29
+ - name : an always fail step
30
+ run : |
31
+ echo "if it reaches here, it means that some previous job(s) failed!"
32
+ exit 123
Original file line number Diff line number Diff line change 1
1
# GitHub Action CI
2
2
# Snyk clean-up when PR is merged/closed
3
3
4
+ name : 🗑️ Snyk PR cleanup - merged/closed
5
+
4
6
on :
5
7
pull_request :
6
8
types :
@@ -14,3 +16,13 @@ concurrency:
14
16
# group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job || github.run_id }}
15
17
cancel-in-progress : true
16
18
19
+ jobs :
20
+ # this is a workaround for the issue that github actions does not support status check on workflow level
21
+ skip-means-success :
22
+ if : ${{ failure() }}
23
+ runs-on : ubuntu-latest
24
+ steps :
25
+ - name : an always fail step
26
+ run : |
27
+ echo "if it reaches here, it means that some previous job(s) failed!"
28
+ exit 123
You can’t perform that action at this time.
0 commit comments