Skip to content

Commit bcf7c2b

Browse files
committed
Don't run CodeQL in merge group
1 parent 2af7eb8 commit bcf7c2b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/codeql.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ on:
77
# Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened
88
# by other workflows.
99
types: [opened, synchronize, reopened, ready_for_review]
10-
merge_group:
11-
types: [checks_requested]
1210
schedule:
1311
# Weekly on Sunday.
1412
- cron: '30 1 * * 0'
@@ -66,7 +64,7 @@ jobs:
6664
#
6765
# If we're running on push or schedule, then we can skip running with `tools: linked` when it would be
6866
# the same as running with `tools: null`.
69-
if [[ "$GITHUB_EVENT_NAME" != "pull_request" && "$GITHUB_EVENT_NAME" != "merge_group" && "$CODEQL_VERSION_DEFAULT" == "$CODEQL_VERSION_LATEST" ]]; then
67+
if [[ "$GITHUB_EVENT_NAME" != "pull_request" && "$CODEQL_VERSION_DEFAULT" == "$CODEQL_VERSION_LATEST" ]]; then
7068
VERSIONS_JSON='[null]'
7169
else
7270
VERSIONS_JSON='[null, "linked"]'

0 commit comments

Comments
 (0)