From ae7548a0ff1b94dda3a89eeda8f59c031874f035 Mon Sep 17 00:00:00 2001 From: Spencer Schrock Date: Wed, 12 Feb 2025 18:57:36 -0700 Subject: [PATCH] Limit codeQL push trigger to main branch (#1507) I noticed the codeQL action running twice on a PR I updated, once because of the pull_request trigger, and once because of the push trigger. Signed-off-by: Spencer Schrock Co-authored-by: Stephen Augustus --- .github/workflows/codeql-analysis.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index bce9c39c..3d010cab 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -13,6 +13,7 @@ name: "CodeQL" on: push: + branches: [ main ] pull_request: # The branches below must be a subset of the branches above branches: [ main ]