ci(codeql): delegate PR CodeQL to central, keep local push-only (fixes duplicate check contexts)#953
Open
seonghobae wants to merge 1 commit into
Open
ci(codeql): delegate PR CodeQL to central, keep local push-only (fixes duplicate check contexts)#953seonghobae wants to merge 1 commit into
seonghobae wants to merge 1 commit into
Conversation
User decision: central delegation. The org 'CWL Central required workflows' ruleset has a code_scanning rule (CodeQL, medium+), and the central ContextualWisdomLab/.github codeql-pr.yml already uploads PR-head AND merge-preview SARIF (upload: always) — so it fully satisfies the merge gate for this repo's languages (actions/js-ts/python). The local codeql.yml also ran on pull_request and uploaded the SAME /language:<lang> category, double-uploading SARIF and duplicating the 'CodeQL compatibility analysis'/'merge preview' check contexts, which stalled opencode auto-approve. - codeql.yml: drop the pull_request trigger + the analyze-merge (merge preview) job. It now scans only the default branch on push (there is no default-setup), and PR CodeQL + the code_scanning gate are owned by the central workflow. - test_release_governance: rewrite the codeql assertion to match push-only delegation (no PR trigger, no merge-preview, still uploads default-branch SARIF). Verified: the rewritten codeql governance test passes. (The 2 other governance failures — scorecard/trivy + dependency-review.yml — are the pre-existing develop-red that #935 fixes; inherited, not from this change.) Supersedes the stale #916 (based on the pre-#912 upload:always shape). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RkKdtHRLG4wSLh6PVsp8J
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.
Why (user decision: central delegation)
The org CWL Central required workflows ruleset has a
code_scanningrule (CodeQL, medium+). The centralContextualWisdomLab/.githubcodeql-pr.ymlalready uploads PR-head AND merge-preview SARIF (upload: always) → it fully satisfies the merge gate for this repo's languages (actions/js-ts/python). But the localcodeql.ymlalso ran onpull_requestand uploaded the same/language:<lang>category, double-uploading SARIF and duplicating theCodeQL compatibility analysis/merge previewcheck contexts — which stalled opencode auto-approve. This is the CodeQL merge-blocker.What
codeql.yml: drop thepull_requesttrigger + theanalyze-merge(merge-preview) job → scans only the default branch on push; PR CodeQL + thecode_scanninggate are delegated to the central workflow. Default-branch scanning is preserved (central is PR-only).test_release_governance: rewrite the codeql assertion to match push-only delegation.Verification
dependency-review.yml) are the pre-existing develop-red that fix(tests): develop is red — align governance tests with #926's central delegation #935 fixes — inherited, not from this change.Supersedes
Stale #916 (based on the pre-#912
upload: alwaysshape) — will close it.🤖 Generated with Claude Code