Repository navigation
GH-3 — Fail-closed CodeQL analysis verification - #87
Merged
Merged
Conversation
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.
Purpose
Add the independently audited, fail-closed
CodeQL Analysis Gateworkflow.This PR contains exactly one new file:
.github/workflows/codeql-analysis-gate.ymlIt does not modify application source, existing workflows, CodeQL default setup, or repository rules.
Why native aggregate CodeQL alone is insufficient
GitHub's native aggregate
CodeQLcheck can complete asneutralwhen CodeQL default setup does not analyze a Dependabot PR head. GitHub acceptsneutralandskippedas satisfying required status checks. Historical PRs #48–#50 demonstrated this exact fail-open path: nine successful application checks, zero CodeQL analyses, a neutral aggregate, and a mergeable PR.What the gate verifies
The gate requires all of the following for the exact PR candidate:
run_attempt == 1./language:actions/language:c-cpp/language:javascript-typescript/language:pythonCodeQLcheck from app57789issuccess.Policy
The workflow is read-only, does not check out PR code, and uses only the built-in job token with:
actions: readcontents: readchecks: readpull-requests: readsecurity-events: readIndependent audit
Accepted owner/auditor trust boundary: the workflow runs from the PR merge commit and is not an immutable workflow signature. Workflow changes require owner review and Luna's independent audit.
Hosted acceptance
This PR is the positive hosted acceptance case. Verification must record:
57789;CodeQL Analysis Gatesuccess from app15368;A genuine missing-analysis negative hosted case remains required before separate ruleset activation.
Governance
Ruleset
25398176is not modified or activated by this PR. The accepted eleven-context governance payload remains byte-identical at SHA-256495c242241f067d1fab038ce70937bc2d21592a4281d22bdec3e4d96efbfc845. Ruleset activation requires separate Product Owner authorization after hosted positive and negative acceptance.