Repository navigation
fix(pr-pipeline): run the read runner's signed-commit check only when the lane can commit - #9268
Conversation
… the lane can commit The report job's signed-commit step ran whenever can-commit was not 'false'. When the run job gated no head SHA, can-commit is empty, so the step ran with an empty since-sha, warned it could not verify, and then failed the job when its label escalation was refused with a 403. A read activity cannot commit (resolve-config sets can-commit from the contents grant), so gate the step on can-commit == 'true' and a gated head SHA, and pin the gate in callers.test.mjs. 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: PR #9268 (head 27f10dd)Result: no security findings. No inline comments were posted. Scope: Analysis: the signed-commit check now requires
The test file is test-only and adds no attack surface. |
|
claude-review reviewed No findings. I reviewed the 2-file diff and found nothing to block. What the PR does: The What I checked (read in the repo, not run):
Non-blocking note: The Closing issue: None. The PR states "No related issue". Its description is data, and it contains no embedded instructions. |
No related issue: fix-docs report failure on #9245, run 39874313435
Summary
In run 39874313435, job "fix-docs / report" on PR #9245 failed. The run job gated no head SHA, so its
can-commitoutput was empty. The report job'ssignedstep gated oncan-commit != 'false', which an empty value passes. It rancheck-signed-commitswith an emptysince-sha, warned "could not verify the lane's commits (the PR's head never matched its branch)", then failed the job when the label escalation got a 403 onPOST .../issues/9245/labels.Fix
In
.github/workflows/pr-run-activity-read.yml, thesignedstep now runs only whenneeds.run.outputs.can-commit == 'true'andsteps.head.outputs.sha != ''; the PR number and not-forged conditions are kept.No read-runner caller has
can-committrue. The read workflow fails red on any effect butread(effect-not-read), the read effect grantscontents: read, andresolve-config.mjs:260setscan-committoString(grant.contents !== "read"), so it isfalsewhenever config resolves and empty otherwise. Thefix-ci,fix-docsandresolve-issueactivities all forbidmutate-branch. The step is kept, not deleted, so a future read-runner activity with a write grant stays covered.pr-run-activity-write.ymlhas the same!= 'false'shape but gates onpr-number != '', and its activities can commit, so it is a different context and is unchanged.Verification
.github/actions/resolve-config/callers.test.mjsevaluates the step'sifforcan-committrue,falseand empty, an empty head SHA, an empty PR number and a forged head. It fails on the old gate (can-commit '') and passes on the new one.callers.test.mjs: 102 pass.check-signed-commitstests: 33 pass.actionlinton the workflow: clean.scripts/check-affected.sh --tests: 9 passed, 5 skipped (no markdown, shell, plugin, Python or skill changes).Related
🤖 Generated with Claude Code