From 0da88f3c5b8876abe01263c85f264c4e8c1c20a8 Mon Sep 17 00:00:00 2001 From: yeikel Date: Fri, 3 Jan 2025 13:35:19 -0500 Subject: [PATCH 1/2] 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 :(" From fcd6acbd43b38e6978f288537d43bb61ba58c8d2 Mon Sep 17 00:00:00 2001 From: yeikel Date: Tue, 14 Jan 2025 18:38:48 -0500 Subject: [PATCH 2/2] update events --- .github/workflows/cve_checks.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cve_checks.yml b/.github/workflows/cve_checks.yml index 3393d4f9e..cfdc40a60 100644 --- a/.github/workflows/cve_checks.yml +++ b/.github/workflows/cve_checks.yml @@ -1,6 +1,7 @@ name: "Infra: CVE checks" on: pull_request: + types: [ "opened", "reopened", "synchronize" ] push: branches: [ "main" ] workflow_dispatch: