Skip to content

Commit ae7548a

Browse files
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 <[email protected]> Co-authored-by: Stephen Augustus <[email protected]>
1 parent 9165624 commit ae7548a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.github/workflows/codeql-analysis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ name: "CodeQL"
1313

1414
on:
1515
push:
16+
branches: [ main ]
1617
pull_request:
1718
# The branches below must be a subset of the branches above
1819
branches: [ main ]

0 commit comments

Comments
 (0)