Skip to content

Commit

Permalink
Limit codeQL push trigger to main branch (#1507)
Browse files Browse the repository at this point in the history
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 <sschrock@google.com>
Co-authored-by: Stephen Augustus <justaugustus@users.noreply.github.com>
  • Loading branch information
spencerschrock and justaugustus authored Feb 13, 2025
1 parent 9165624 commit ae7548a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ]
Expand Down

0 comments on commit ae7548a

Please sign in to comment.