ci: CodeQL advanced setup so fork pull requests can satisfy the gate - #58
Merged
Conversation
Default-setup check runs are never created on fork pull requests, so the six required Analyze contexts are unsatisfiable for external contributors. The advanced-setup workflow runs on every pull request and push to main; its CodeQL (<language>) contexts replace the default-setup ones in branch protection. Signed-off-by: MohammadHaroonAbuomar <40180927+MohammadHaroonAbuomar@users.noreply.github.com>
MohammadHaroonAbuomar
requested a review
from Caitie McCaffrey (CaitieM20)
as a code owner
July 30, 2026 02:10
Signed-off-by: MohammadHaroonAbuomar <40180927+MohammadHaroonAbuomar@users.noreply.github.com>
Signed-off-by: MohammadHaroonAbuomar <40180927+MohammadHaroonAbuomar@users.noreply.github.com>
The Go extractor traces the toolchain present at init time; installing Go afterwards leaves the tracer with nothing to wrap (no source seen). Signed-off-by: MohammadHaroonAbuomar <40180927+MohammadHaroonAbuomar@users.noreply.github.com>
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.
CodeQL default setup never creates its check runs on fork pull requests, so the six required
Analyze (*)contexts are unsatisfiable for any external contribution (live example: #57, approved and otherwise green, refused with "6 of 17 required status checks are expected"). This adds the advanced-setup workflow — six languages, build-mode none, pull_request + main + weekly triggers — whoseCodeQL (<language>)contexts report on every head, fork or branch. Follow-up (repo settings, after this merges and proves green on main): swap the required contexts and disable default setup to avoid double analysis.