8000 Limit codeQL push trigger to main branch (#1507) · ossf/scorecard-action@ae7548a · GitHub
[go: up one dir, main page]

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 <sschrock@google.com> Co-authored-by: Stephen Augustus <justaugustus@users.noreply.github.com>
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

Lines changed: 1 addition & 0 deletions
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)
0