Repository navigation
fix(ci): scan release tags with CodeQL - #344
vincentkoc wants to merge 2 commits into
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. ClawSweeper review completeClawSweeper finished reviewing this revision. The review result is being finalized. |
|
Codex review: needs maintainer review before merge. What this changesThis PR replaces CodeQL scans on main pushes with version-tag scans and documents exact-commit release recovery. Example: A maintainer pushes release tag v0.11.1.
Review scores
ProductKind: Maintenance · Worth it: Yes · Fix scope: Complete Merge readiness✅ Ready for maintainer review Keep this PR open: the maintainer-approved cadence change is absent from main, and review found no actionable defect. Priority: P3 Before mergeNone. FindingsNone. Agent review detailsHow this fits togetherGitHub Actions events start the CodeQL analyze job, whose commit-associated check is consumed by the shared release gate. flowchart LR
A[Pull request] --> D[CodeQL analyze]
B[Version tag push] --> D
C[Weekly or manual event] --> D
D --> E[Commit check and analysis]
E --> F[Shared release gate]
Technical reviewBest possible solution: Land the focused trigger change with its documented manual qualification and recovery path. Do we have a high-confidence way to reproduce the issue? Current main directly shows the main-push trigger; this PR changes an intentional CI cadence rather than repairing a reproduced runtime bug. Is this the best way to solve the issue? The two-line workflow change uses the existing analysis owner and preserves the required check name; the added documentation addresses exact-SHA dry runs and recovery. AGENTS.md: not found in the target repository. Codex review notes: model internal, reasoning medium; reviewed against 4891b84fb285. Provenance checked
TestingProof path: shipped entry point. SecurityNone. EvidenceWhat I checked:
Likely related people:
Preflight sourceSource unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified. LabelsLabel changes:
Label justifications:
Rating scale6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior. WorkflowClawSweeper edits this one comment on every review. Comment Reviewed November 22, 2026, 7:38 PM ET / November 23, 2026, 00:38 UTC. |
70db9c5 to
54f7499
Compare
What Problem This Solves
Every main push currently starts CodeQL even though normal PR scans already run. Simply removing that trigger would leave the release gate waiting for its required
analyzecheck at the frozen release commit.User Impact
Maintainers keep PR security checks and weekly main scans, with automatic CodeQL coverage for each version-tag push. Untagged release dry runs and recovery use the documented manual scan at the exact target SHA. There is no user-visible CLI change.
Why This Change Was Made
The existing shared release gate accepts tag-push and manual checks and waits up to 15 minutes on the frozen target SHA. This changes only the CodeQL push trigger, preserves its analysis settings and required check name, and documents the cadence in
.ci-policy.md. Recovery instructions distinguish a green job from a confirmed processed analysis.Current revision — November 27
The branch is rebased onto
bd265ffba6a0f7df3dd9516384440e2e72d3930f; current head is54f74996cc8e2015f83a18c0302ce0e1a1b5fd0d. The only conflict was the changelog: the original note remains under Unreleased and the new 0.12.0 release notes are preserved. Workflow, policy note, and contributor guidance are byte-identical to the previously reviewed head. Normal PR CodeQL coverage, including fork PRs, is unchanged.Local source review found no code or security findings. Both rewritten commits verify, and
git diff --checkpasses. The local full workflow-lint attempt was stopped at a five-minute bound without a verdict; the current-head hostedlintandanalyzejobs have succeeded. All current-head required checks now pass: deps, lint, test, release-check, analyze, docker, and Scan for Verified Secrets. The required non-author Code Owner review remains outstanding. Repository auto-merge is disabled, so no automatic landing is queued. The approved cadence and historical processed-analysis proof below address the source review recommendations; these older runs are not claimed as executions of the new head.Historical evidence —
70db9c5a760ca32e60a0b6c7fd19c43026e75a72actionlint .github/workflows/codeql.yml) andgit diff --checkpass. A source comparison confirms PR, weekly, manual, language, action pins, permissions, and cache settings are unchanged.9d81ab3d2877f9900ef787e6dbcf4d9af96eb013confirm tag/manual acceptance, pending missing or running checks, failed-check rejection, and the 15-minute timeout.70db9c5a760ca32e60a0b6c7fd19c43026e75a72.make checkpassed dependency verification, formatting, vet, vulnerability and dead-code checks, full workflow lint, and the full race suite. Its smoke step rejected dirty Go VCS metadata caused by the test runner's untracked metadata directory. Running only the remainingmake smoke snapshotsteps in a clean detached checkout of the same commit passed, including Linux/macOS amd64/arm64 snapshot builds. The initial command itself exited nonzero; the affected steps passed on the clean-fixture rerun.pull_requestruns appeared after the PR was marked ready: CI, CodeQL, and Docker all succeeded. Normal PR execution is observed, not merely inferred from the trigger configuration.2225979135matches that SHA and branch; analysis2225981180covers PR merge SHA1c403478ff4fb33ca21ad45ddb5f62a31f51382e. Both use category.github/workflows/codeql.yml:analyze, CodeQL 2.27.5, and 34 rules, with zero results and empty analysis errors/warnings. Both corresponding SARIF uploads report processing complete with no errors.