Skip to content

Commit 8ca2666

Browse files
authored
Add a name to workflows & a dummy job (#306)
1 parent 6ddc534 commit 8ca2666

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/snyk-cli-scan.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
# any push on any protected branch: main, v6.8, releases/**
44
# any PR crteated against any protected branch: main, v6.8, releases/**
55

6+
name: 🔬 Snyk CLI scan
7+
68
on:
79
push:
810
branches: [ main ]
@@ -18,3 +20,13 @@ concurrency:
1820
env:
1921
SNYK_SEVERITY_THRESHOLD_LEVEL: critical
2022

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

.github/workflows/snyk-pr-cleanup.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# GitHub Action CI
22
# Snyk clean-up when PR is merged/closed
33

4+
name: 🗑️ Snyk PR cleanup - merged/closed
5+
46
on:
57
pull_request:
68
types:
@@ -14,3 +16,13 @@ concurrency:
1416
#group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job || github.run_id }}
1517
cancel-in-progress: true
1618

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

0 commit comments

Comments
 (0)