You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] CodeQL paths filter causes merge protection to block PRs with no Python changes #247
The codeql.yml workflow template uses a paths: ['**.py'] filter on the pull_request trigger. When a PR targeting main (or dev/release/**) contains no Python file changes, the CodeQL workflow is correctly skipped by GitHub Actions. However, if the repository has code scanning merge protection enabled (Settings > Code security > Code scanning > Protection rules), the merge gate expects CodeQL SARIF results for every PR commit. Since CodeQL never ran, there are no results to evaluate, and the check is stuck permanently in a "waiting" state — blocking the merge.
Steps to Reproduce
Enable code scanning merge protection on a downstream repo that uses the codeql.yml template
Open a PR targeting main that modifies only non-Python files (e.g. workflow YAML, lock files, markdown)
Observe that all CI checks pass, but the code scanning gate shows: "Code scanning is waiting for results from CodeQL for the commits <sha>."
The PR cannot be merged
Expected Behavior
PRs with no Python changes should not be blocked by the CodeQL merge protection gate. The workflow should either run and produce an empty/clean result, or the check should be satisfied without results when the paths filter excluded the run.
Actual Behavior
The code scanning merge protection waits indefinitely for CodeQL results that will never arrive because the workflow was skipped by the paths filter.
Trigger: pull_request to main with paths: ['**.py']
Additional Context
Discovered while merging a CI permissions bugfix (vig-os/devkit-smoke-test#22) that only touched workflow YAML, uv.lock, and CHANGELOG.md.
Possible Solution
Remove the paths filter from the pull_request trigger so CodeQL always runs on PRs targeting protected branches. CodeQL on a small Python toolchain is fast (~15s analysis) so the overhead is negligible, and it guarantees SARIF results are always uploaded for the merge protection gate.
Alternatively, add a lightweight "skip" job that uploads an empty SARIF file when no .py files are in the diff, so the code scanning check is always satisfied.
Activity
chore: update devcontainer image and template
fix(ci): remove CodeQL PR path filter to satisfy merge protection
fix: remove CodeQL PR path filter to satisfy merge protection (#248)
feat(ci): wire cross-repo smoke dispatch and release gate (#249)