fix(ci): skip CodeQL gate wait on Dependabot PRs#122
Merged
Conversation
The CodeQL Required gate polls for GitHub-managed Analyze check runs, but the default setup does not emit them for Dependabot-authored pull requests. The gate timed out (e.g. PR #120) even though the change was only a lockfile bump that CodeQL would not analyze anyway. Detect Dependabot PRs and skip the wait, mirroring the existing fork-pull-request handling. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
s302
approved these changes
May 20, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CodeQL Required在检测到src/backend/**/src/frontend/**/.github/workflows/**变化时会轮询Analyze (...)check runs,但 GitHub-managed CodeQL default setup 不会在 Dependabot 创建的 PR 上发起 Analyze。结果 gate 永远等不到 check 出现,15 分钟后超时失败(参见 chore(deps): bump idna from 3.13 to 3.15 in /src/backend #120 的运行日志)。dependabot[bot]作者后直接放行并记录原因。Test plan
CodeQL Required直接通过,且日志里出现Skipping CodeQL gate for Dependabot pull request ...Analyze (python)/Analyze (javascript-typescript)/Analyze (actions)🤖 Generated with Claude Code