Skip to content

Commit f8cf094

Browse files
committed
Infra: Run cve checks workflow on pull requests and pushes to main
1 parent a159ef6 commit f8cf094

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/cve_checks.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: "Infra: CVE checks"
22
on:
3+
pull_request:
4+
push:
5+
branches: [ "main" ]
36
workflow_dispatch:
47
schedule:
58
# * is a special character in YAML so you have to quote this string
@@ -71,7 +74,7 @@ jobs:
7174

7275
notify:
7376
needs: check-cves
74-
if: ${{ always() && needs.build-and-test.result == 'failure' }}
77+
if: ${{ always() && needs.build-and-test.result == 'failure' && github.event_name == 'schedule' }}
7578
uses: ./.github/workflows/infra_discord_hook.yml
7679
with:
7780
message: "Attention! CVE checks run failed! Please fix them CVEs :("

0 commit comments

Comments
 (0)