Skip to content

Commit 6182258

Browse files
authored
chore: fix slack notification send when CVEs are detected (#388)
add condition to trigger a job even if the previous one fails
1 parent 2e235fc commit 6182258

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/scan.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ jobs:
6767
SendSlackNotification:
6868
needs: BuildAndScan
6969
uses: ./.github/workflows/send-notification.yml
70-
if: github.event_name == 'schedule' && needs.BuildAndScan.steps.cve-threshold.outcome == 'failure'
70+
if: always() && github.event_name == 'schedule' && needs.BuildAndScan.steps.cve-threshold.outcome == 'failure'
7171
with:
7272
CVE_CRITICAL: ${{needs.BuildAndScan.outputs.CVE_CRITICAL}}
7373
CVE_HIGH: ${{needs.BuildAndScan.outputs.CVE_HIGH}}

0 commit comments

Comments
 (0)