Skip to content

Commit b918ab0

Browse files
authored
Infra: Run cve checks workflow on pull requests and pushes to main (#745)
1 parent 6f89bfa commit b918ab0

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/cve_checks.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: "Infra: CVE checks"
22
on:
3+
pull_request:
4+
types: [ "opened", "reopened", "synchronize" ]
5+
push:
6+
branches: [ "main" ]
37
workflow_dispatch:
48
schedule:
59
# * is a special character in YAML so you have to quote this string
@@ -71,7 +75,7 @@ jobs:
7175

7276
notify:
7377
needs: check-cves
74-
if: ${{ always() && needs.build-and-test.result == 'failure' }}
78+
if: ${{ always() && needs.build-and-test.result == 'failure' && github.event_name == 'schedule' }}
7579
uses: ./.github/workflows/infra_discord_hook.yml
7680
with:
7781
message: "Attention! CVE checks run failed! Please fix them CVEs :("

0 commit comments

Comments
 (0)