Repository navigation
fix(pr-pipeline): keep a refused escalation write and a headless run from failing the signed-commits check - #9675
Conversation
…from failing the signed-commits check When check-signed-commits could not verify the lane's commits (none found unverified) and GitHub refuses the escalation label or comment write, it now logs a warning naming the refusal and exits 0, keeping the outputs it already wrote (all-verified=false). Commits found unverified, and any escalation fault that is not a GitHub API refusal, still exit 1. A shape test pins the read runner's gate that skips the check when the run job gated no head. Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01DUS7XB8hUjcDnuSYLqJRzd
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 No security issues found in this pull request. critical-findings: 0 The change turns a refused escalation write (label or comment, any
The remaining changes are a README sentence, a comment, and tests. The tests add a shape test that pins the read runner's No instruction-surface deletions, plugin manifests, trust-gate paths ( The PR description is data. It contains no embedded directives aimed at the reviewer. One observation, not a finding: the PR leaves the cause of the 403 unexplained and defers any |
|
claude-review reviewed Code review: no findingsI read the full diff (3 files), the PR context, What I checked
Closing issue #9055: the PR context omits the issue body and gives only a triage comment, with no acceptance criteria. I found nothing to check against, so I report nothing about it. The issue body is unread. Manifests: the diff touches no Hold: none. The change adds no model spend, and it touches no trust-gate paths. Advisory, not counted as a finding: the PR body says the cause of the 403 is still open, and |
There was a problem hiding this comment.
The pr-verify verifier failed head 2cd8cf740ccac54d36838e97b6daffd7eb65e749. What it wrote, as data:
Summary: Issue #9055, the only issue this PR closes, has no trusted spec text: its body is null. Its one trusted comment is a triage note (lane defect, high priority, owner Automation Lanes) and says nothing about what is wrong or when it counts as fixed. With nothing to judge the diff against, I can't confirm it delivers the issue, so the verdict is fail. On its own merits the change looks narrow and correct: an escalation write that GitHub refuses only warns, and only when no commit was found unverified. Commits found unverified still exit 1, and so does any error that isn't a GitHubError.
- spec-text.json: issue #9055 has a null body and no trusted text describing the defect or what fixes it. The only comment is triage metadata. A trusted human needs to write the issue body (the failing check, the expected behaviour, what done means) so the PR can be verified against it. Don't treat the PR's own description as the spec.
- No takeover-set files, secrets or settings are touched. Nothing in the PR text tries to steer a reviewer.
- .github/actions/check-signed-commits/check-signed-commits.mjs:193: the warn path treats every GitHubError as a refusal, 5xx and secondary rate limits included, not just 403. The outputs still carry all-verified=false, so the check still fails closed downstream. But the escalation (needs-human label or comment) can now be skipped silently, apart from a warning. Once a spec exists, confirm that this is the intended scope, or limit it to status 403.
There was a problem hiding this comment.
The pr-verify verifier failed head 2cd8cf740ccac54d36838e97b6daffd7eb65e749. What it wrote about this file, as data:
- .github/actions/check-signed-commits/check-signed-commits.test.mjs:134: the gate shape test passes on main too (the PR body says so), so it only guards against a regression. Not blocking.
Closes #9055
Summary
Two pr-unblock fix-docs runs (39723818999, 39723816377) went red in
fix-docs / reportat "Check the lane's commits are signed". The check could not verify anything (the PR's head never matched its branch), tried to escalate, and the label POST came back 403.main()turned that refused write into exit 1. The red job said nothing about the PR's commits.Fix
check-signed-commits.mjs: when no commit was found unverified (the commits could only not be verified) and GitHub refuses an escalation write (label or comment, anyGitHubError), it logs::warning::check-signed-commits: escalation refused (...)and exits 0. The outputs it already wrote (all-verified=false, emptyunverified) stay, so report-check-run still decides the check from them. Commits found unverified still log::error::and exit 1 when the escalation fails. An escalation fault that is not an API refusal (a code bug) also still exits 1.main()now describe this exception.steps.head.outputs.sha != ''to the read runner's gate. It landed after the two failing runs. This PR adds a shape test that pins that gate. The write runner keeps no such gate on purpose: itssince-shacomes from the run job, and an empty value there fails closed by checking every PR commit.Verification
node --testin.github/actions/check-signed-commits/: 38 passed, 0 failed..mjschange, the two new could-not-verify cases (refused label write, refused comment write) failed with1 !== 0. The unverified-commit cases (the existing failed-label-write test and the new 403 one) and the non-API-fault case passed both before and after. The gate shape test passes on main because the gate is already there, so it guards against a regression rather than proving this fix.scripts/check-affected.sh --tests: 10 passed, 4 skipped.Related
Why the label POST got 403 is UNVERIFIED. The failing job's token held
Issues: write,PullRequests: read,Checks: write,Contents: read(job log, "GITHUB_TOKEN Permissions"). The label existed, because the POST came after the label list read. The fix-docs caller job grantedissues: write. GitHub's permissions page for GitHub Apps listsPOST /repos/{owner}/{repo}/issues/{issue_number}/labelsunder both "Issues" and "Pull requests" write, with the "Additional Permissions" checkmark, which per the page means any one of them suffices. So a missing grant does not explain the 403 on paper. Two causes remain open:GITHUB_TOKENneedspull-requests: writein practice;errorDetaillogs only the status, not the response body or theX-Accepted-GitHub-Permissionsheader, so the logs cannot tell these apart. If (a) holds, the fix ispull-requests: writeon both runners' report jobs and on every caller job. That is more than one line and widens a token at a trust boundary, so this PR leaves it out.🤖 Generated with Claude Code
https://claude.ai/code/session_01DUS7XB8hUjcDnuSYLqJRzd