Repository navigation
fix(ci): authenticate frozen source checkouts - #136949
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. |
|
@clawsweeper review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
161efcb to
60dcea7
Compare
|
@clawsweeper review |
|
🦞👀 Re-review progress:
|
60dcea7 to
6e67cf0
Compare
|
@clawsweeper review final head 6e67cf01b262ceddf34679adb81a34902b047c36 (same tree as prior review target; workflow-only auth repair) |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
|
Codex review: needs maintainer review before merge. Reviewed September 7, 2026, 2:20 AM ET / 06:20 UTC. ClawSweeper reviewWhat this changesAuthenticates frozen CI repository reads with temporary credentials and replaces remote security-hook initialization with locally installed, pinned scanners. Merge readiness✅ Ready for maintainer review No blocking findings. The frozen release branch still needs this repair; all three earlier findings are addressed, and the supplied current checks show the former security-fast blocker passing. Maintainer-authored work remains protected from cleanup closure. Priority: P1 Review scores
Verification
How this fits togetherCI retrieves the selected source revision and comparison base before running checks and producing release artifacts. The changed workflows supply repository authentication and prepare the security scanners that inspect that source. flowchart TD
A[PR or release dispatch] --> B[Selected source revision]
C[Read-only job token] --> D[Repository-scoped Git and API reads]
B --> D
D --> E[Source and comparison base]
E --> F[Trusted scanner policy]
F --> G[Security and workflow checks]
E --> H[Test and build jobs]
Before mergeNone. Agent review detailsSecurityNone. PR surfaceTests +123, Config +130. Total +253 across 7 files. View PR surface stats
Review metrics
Technical reviewBest possible solution: Preserve the frozen branch’s checkout contracts and scanner versions while authenticating repository reads without leaving reusable credentials behind. Do we have a high-confidence way to reproduce the issue? Yes, for the frozen target: its unauthenticated Git reads match the recorded private-repository checkout failures. This review did not execute a reproduction or establish a current-main failure. Is this the best way to solve the issue? Yes, for this backport: it repairs the existing transport boundary and preserves scanner contracts without importing main’s broader CI redesign or persisting shared credentials. AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning medium; reviewed against 7ab1c97cb7fe. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
6e67cf0 to
dc50286
Compare
|
@clawsweeper re-review exact head dc50286. Addressed P1: all three Testbox origins and header scopes now exactly use |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
dc50286 to
e3645f7
Compare
|
@clawsweeper re-review exact head e3645f791c2102d79d703f141488dc388e24ed31. Addressed P1: historical/candidate release identity uses authenticated same-repository commit API ( |
|
🦞👀 Re-review progress:
|
e3645f7 to
9d1c5f4
Compare
|
@clawsweeper re-review exact head 9d1c5f4. Addressed P1 release ref lookup with established authenticated commit API. Also replaced the confirmed third-party public hook clone with candidate-native local system hooks preserving candidate scanner pins and trusted base policy; hook Git is file-only and no repo token leaves openclaw/openclaw. |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
🦞👀 Re-review progress:
|
|
@clawsweeper re-review Exact head: The release-cache tag lookup now has its own ephemeral, URL-scoped Git authentication invocation and redirects disabled; credentials are not persisted to |
|
🦞🧹 I asked ClawSweeper to review this item again. |
|
@clawsweeper re-review exact current head; please confirm only current actionable findings and rank-up moves. |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
f95d46e to
b0d0a4a
Compare
|
@clawsweeper re-review Rebased mechanically onto |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
Summary
Repairs the frozen 2026.6.35 candidate CI checkout boundary after anonymous Git reads began failing. Every manual checkout/fetch of
github.repositorynow passes the job token as a process-only, repository-scoped HTTP header; no credentials are saved tooriginor Git config, and redirects are disabled. This also covers the shared shallow-base recovery action, so a distant PR base cannot reintroduce the unauthenticated transport.The three frozen Testbox preparation workflows fetch trusted
mainafter their candidate checkout. TheiroriginURLs now end in.git, exactly matching the URL-scoped header. Workflow Sanity's three manual source checkouts and its later trusted-base fetch use the same boundary. Release-target verification now uses the authenticated GitHub commit API for its historical tag and candidate branch identity, rather than anonymousgit ls-remote.security-fastnow preserves the candidate's exact scanner versions (pre-commit4.2.0,pre-commit-hooks6.0.0,zizmor1.22.0) while using local system hooks built from immutable basezizmorpolicy. This removes its remote Git-hook initialization and forces hook Git transport tofileonly. The external ClawHub checkout remains untouched: the candidate token is intentionally not lent to another repository.actions/checkoutpaths remain untouched.Evidence
659df810preflight and security-fast jobs havecontents: readbut no authenticated Git transport at.github/workflows/ci.yml:139and:457.fatal: could not read Username for https://github.com.100514638783failed at the uncredentialedrefs/heads/mainfetch inci-check-arm-testbox.yml.100518016507proves source checkout and shared base recovery now pass, then separately fails only when pre-commit tries to clonehttps://github.com/pre-commit/pre-commit-hooks.zizmor-pre-commitv1.22.0 declares itszizmor==1.22.0package dependency, andpre-commit-hooks6.0.0 exports thedetect-private-keyexecutable. The candidate-native local hooks preserve their file filters, exclusions, policy arguments, and pins.ea947e7891ausingGH_TOKEN+ the same-repository commit API; security-fast follows established main network-free scanner repair1b535dd2f4fwithout pulling unrelated CI machinery.originURL and authentication header usehttps://github.com/${CHECKOUT_REPO}.git.Validation
node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts(33 passed)actionlintonci.yml,workflow-sanity.yml, and all three Testbox workflows./node_modules/.bin/oxfmt --checkon changed workflow/action/test files.gitorigin keygit diff --checkautoreview --mode local --base origin/extended-stable/2026.6.33(no accepted finding output)The replacement exact-head CI re-exercises security-fast without relying on a third-party Git clone or forwarding the repository token beyond
openclaw/openclaw.Follow-up: release cache tag authentication
Commit
f95d46e649ccloses the remaining same-repository read identified by ClawSweeper.Resolve release dist cache seedsnow receives the ephemeral GitHub token and applies the established process-only, repository-scoped Git header plus redirect policy to itsgit ls-remote --tagsinvocation. It never persists credentials onorigin; private frozen candidates can resolve beta/latest tag cache keys rather than silently skipping them. The workflow guard now makes that cache lookup part of the authenticated-read contract.Verification:
node scripts/run-vitest.mjs test/scripts/ci-workflow-guards.test.ts --reporter=dot(33 passed),actionlint .github/workflows/ci-build-artifacts-testbox.yml, formatting, andgit diff --checkpassed.check-changed --dry-runselected tooling; its actual Testbox delegation is unavailable locally because pnpm attempts a non-TTY modules purge before dispatch. Commit autoreview was invoked forf95d46e649c.Follow-up delta: workflow +9/-1; test +12/-0. The test fails on the prior head because the cache-seed step has neither its token environment nor the scoped
ls-remoteheader.Current merge gate
Exact-head CI now reaches the repaired manual checkout and base-recovery paths. Its remaining
security-fastfailure is solely the candidate's four[email protected]high advisories; #136721 supplies the targeted4.1.4lockfile/shrinkwrap repair. Merge #136949 first, then rerun #136721 and dependent candidate heads.