From 3c597bbe5f68a983bcc73744429f8a3ff5f8ba35 Mon Sep 17 00:00:00 2001 From: Simo Sorce Date: Mon, 25 Mar 2024 08:47:52 -0400 Subject: [PATCH] Try to run Coverity Scan on demand This way we can run the scan when the PR is still open and catch issues before merging. Signed-off-by: Simo Sorce --- .github/workflows/coverity-scan.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/coverity-scan.yml b/.github/workflows/coverity-scan.yml index 521487f5..96c23e5d 100644 --- a/.github/workflows/coverity-scan.yml +++ b/.github/workflows/coverity-scan.yml @@ -2,13 +2,15 @@ name: Coverity Scan on: - push: - branches: ["main"] + pull_request_target: + types: + - labeled schedule: - cron: '41 3 * * 0' jobs: coverity: + if: github.event.label.name == 'covscan' name: Coverity Scan runs-on: ubuntu-22.04 container: fedora:latest