Skip to content

Commit

Permalink
Add a name to workflows & dummy job
Browse files Browse the repository at this point in the history
  • Loading branch information
msmygit committed Sep 12, 2024
1 parent 6ddc534 commit 881f43b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/snyk-cli-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
# any push on any protected branch: main, v6.8, releases/**
# any PR crteated against any protected branch: main, v6.8, releases/**

name: 🔬 Snyk CLI scan

on:
push:
branches: [ main ]
Expand All @@ -18,3 +20,13 @@ concurrency:
env:
SNYK_SEVERITY_THRESHOLD_LEVEL: critical

jobs:
# this is a workaround for the issue that github actions does not support status check on workflow level
skip-means-success:
if: ${{ failure() }}
runs-on: ubuntu-latest
steps:
- name: an always fail step
run: |
echo "if it reaches here, it means that some previous job(s) failed!"
exit 123
12 changes: 12 additions & 0 deletions .github/workflows/snyk-pr-cleanup.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# GitHub Action CI
# Snyk clean-up when PR is merged/closed

name: 🔬 Snyk CLI PR cleanup

on:
pull_request:
types:
Expand All @@ -14,3 +16,13 @@ concurrency:
#group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job || github.run_id }}
cancel-in-progress: true

jobs:
# this is a workaround for the issue that github actions does not support status check on workflow level
skip-means-success:
if: ${{ failure() }}
runs-on: ubuntu-latest
steps:
- name: an always fail step
run: |
echo "if it reaches here, it means that some previous job(s) failed!"
exit 123

0 comments on commit 881f43b

Please sign in to comment.