Repository navigation
ci(pr-pipeline): check the subprocess env scrub once per Claude Code release from release intake - #13234
Conversation
Release intake runs capture-probe.mjs as a Bash child of a run-claude-cli leg on the release it takes, in place of the two env-scrub cases, which cannot run under the rule that a Claude API key reaches only that action. A failure fails the scrub-probe job naming the release and hit names; a pass records the release. No job needs it, so a red probe blocks no publishing. No new secret, no wider permission, no credential pin change. capture-probe.mjs takes further names from CAPTURE_PROBE_EXTRA_NAMES and lists the names it probed, so a name that never arrived fails the check. Closes #12836 Co-Authored-By: Claude Opus 5.5 <[email protected]>
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
claude-security-review reviewed Security review (incremental, blocking only): no security issues foundcritical-findings: 0 Scope. This review covers only what changed since What changed. The push fixes the settled API-budget coverage thread, which is marked
Can the Claude leg tamper with the logger? The new step runs after the probe leg, so I checked whether the leg could alter the logger's code under
Trust controls. No trust control is widened. The trusted-trigger check, token scope, kill switch, merge holds and the secrets the job reads are all unchanged by this push. No instruction surface or plugin manifest changed. Spend: none added beyond a one-minute bookkeeping step on the job's existing hosted runner. The PR context contains no text addressed to this review. |
|
claude-review reviewed Code review: PR #13234, incremental since
|
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closes #12836
Summary
A Claude Code release can change
CLAUDE_CODE_SUBPROCESS_ENV_SCRUBwith no changelog line, the CI lanes rely on that scrub, and nothing checked it per release: the twoenv-scrubbehavior probe cases run only on request. They cannot run in CI as written, because a Claude API key may reach only arun-claude-clistep and that action always forces the scrub on, so the scrub-off control cannot run there.Under the owner's decision on the issue (option (d), 2026-11-04), release intake keeps the credential rule and changes the check: it runs
capture-probe.mjsin place of the two cases.Fix
upstream-apply-changelog.ymlgets ascrub-probejob. It runs arun-claude-clileg withcli-versionset to the release the gate picked, onISSUE_LANE_CLAUDE_API_KEY, with one allowed Bash call tocapture-probe.mjsand twoReadcalls its deny rules must refuse. The scrub is on as the lanes run it, and the probe's canary child shows its/procscan can see an environment.modeljob's (proceed,skip-key,run_attempt == '1'). Token:contents: read. Cache:cache-mode: read. The leg runs after the kill switch, the managed settings and runner isolation. Its sealed transcript goes under the existinglane-transcript-*row. No job needs it, so a red probe blocks no publishing.::errornaming the release and hit names, never a value or a place, on a failed leg, a CLI other than the release, no result, a missing name, any hit, a missed canary, or aReadthat was not refused. A pass writes a::noticeand a job summary line naming the release.capture-probe.mjstakes further credential names fromCAPTURE_PROBE_EXTRA_NAMESand lists the names it probed in its result, so a name that never reached the Bash child fails the check. With the variable unset it probes the same names as before, sopr-verify-capture.ymlbehaves as it did.lane-funding.jsonlists the job underissue-lane. No new secret, no wider token permission, no change to the credential pins.Verification
node --test:capture-probe.test.mjs,upstream-apply-changelog.test.mjs, the rest of.github/scripts/pr-verify/,callers.test.mjs,live-config.test.mjs,log-api-budget.test.mjspass. The new check-step test runs the step's own script against hand-built results and leg transcripts.cli-version, extra names, each check-step branch, transcript, funding row): 28 of 29 runs failed a test. The survivor rancallers.test.mjsagainst the key in the probe step's ownenv, which that pin allows since the key stays on the launcher step; the same mutation run against the intake test fails it.zizmorreports nothing. Localactionlintreports only thecache-modeandqueuekeys it does not know, which this file already used, and nothing else with those two ignored.scripts/check-affected.sh --tests,check-line-citations.py,check-lane-coverage.sh --check,check-test-tmp-cleanup.sh --checkandcheck-changelog-fragments.sh --checkpass.Not verified:
pr-verify-capture.yml(merge.verify-capture.appis unset), and a workflow run cannot happen before merge.CAPTURE_PROBE_EXTRA_NAMESsurvives the scrub into the Bash child; the check fails red if it does not.Known limits:
range-not-computed) is probed again, at most the lane's per-day cap, since only the done marker ends a release.install-failedand turns the job red; the model job may still mark that release done, so it is not probed again without a dispatch.Related
.github/workflows/pr-verify-capture.yml(the probe step this job follows)🤖 Generated with Claude Code