Skip to content

docs(merge-strategy): CodeQL default setup never analyzes fork PRs - #163

Merged
CybotTM merged 1 commit into
mainfrom
docs/codeql-default-setup-fork-prs
Aug 26, 2026
Merged

docs(merge-strategy): CodeQL default setup never analyzes fork PRs#163
CybotTM merged 1 commit into
mainfrom
docs/codeql-default-setup-fork-prs

Conversation

@CybotTM

@CybotTM CybotTM commented Aug 26, 2026

Copy link
Copy Markdown
Member

New troubleshooting section beside the existing default-setup wedge case, from a /retro of today's session: CodeQL default setup does not analyze fork PRs, so where its Analyze contexts are required (typically in classic branch protection, invisible to the rules endpoint), every fork PR sits BLOCKED with all visible gates green. Covers the GraphQL isRequired diagnosis, the helper-branch workaround (identical head SHA in the base repo dispatches the contexts), and the durable fix — an advanced-setup codeql.yml whose Analyze job matrix reproduces the required context names, with the disable-default-setup-first ordering that SARIF uploads demand.

Observed and fixed on netresearch/git-workflow-skill today: #226 (the blocked fork PR), #237 (the diagnosis), #240 (the fix).

Assisted by claude-code:claude-fable-5 — Session

Default setup's Analyze contexts, required in classic branch protection,
never report on a fork PR head — the PR sits BLOCKED with every visible
gate green, and neither the rules endpoint (classic protection is
invisible there) nor the rollup (the contexts are absent, not red) names
the cause. Documents the GraphQL isRequired diagnosis, the helper-branch
workaround that shares the head SHA, and the durable fix of switching to
an advanced-setup codeql.yml whose Analyze job matrix reproduces the
required context names — including the disable-default-setup-first
ordering, without which SARIF uploads are refused.

Observed and fixed 2026-08-26 on netresearch/git-workflow-skill (#226,
#237, #240).

Assisted-by: claude-code:claude-fable-5
Agent-Session: https://claude.ai/code/session_01C7S9rbgu5giqCwnzwafrHA
Agent-Host: 0493f0
Signed-off-by: Sebastian Mendel <github@sebastianmendel.de>
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@sonarqubecloud

Copy link
Copy Markdown

@github-actions github-actions Bot added documentation Improvements or additions to documentation skill labels Aug 26, 2026
@CybotTM
CybotTM marked this pull request as ready for review August 26, 2026 11:36
Copilot AI lite review requested due to automatic review settings August 26, 2026 11:36

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@CybotTM

CybotTM commented Aug 26, 2026

Copy link
Copy Markdown
Member Author

Self-review: 2715709

The review this pull request demands is unsatisfiable (Copilot quota wall or repeated bot failures on this head). Per the documented fallback, the diff on this head was reviewed by the PR author; this comment is the on-the-record attestation the merge gate reads back. It stops matching on the next push.

@CybotTM
CybotTM merged commit 1eb5a36 into main Aug 26, 2026
20 of 21 checks passed
@CybotTM
CybotTM deleted the docs/codeql-default-setup-fork-prs branch August 26, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation skill

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants