From 150b7af31a70c25c46947102df04acfd09a0f988 Mon Sep 17 00:00:00 2001 From: yeikel Date: Fri, 3 Jan 2025 13:35:19 -0500 Subject: [PATCH] Infra: Run cve checks workflow on pull requests and pushes to main --- .github/workflows/cve_checks.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cve_checks.yml b/.github/workflows/cve_checks.yml index e9c90ac14..3393d4f9e 100644 --- a/.github/workflows/cve_checks.yml +++ b/.github/workflows/cve_checks.yml @@ -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 @@ -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 :("