Skip to content

Commit

Permalink
Infra: Run cve checks workflow on pull requests and pushes to main
Browse files Browse the repository at this point in the history
  • Loading branch information
yeikel committed Jan 14, 2025
1 parent a159ef6 commit f8cf094
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/cve_checks.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: "Infra: CVE checks"
on:
pull_request:
push:
branches: [ "main" ]
workflow_dispatch:
schedule:
# * is a special character in YAML so you have to quote this string
Expand Down Expand Up @@ -71,7 +74,7 @@ jobs:

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

0 comments on commit f8cf094

Please sign in to comment.