Repository navigation
fix(pr): support split GitHub CLI auth - #124671
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
a89c6a5 to
ca187f5
Compare
|
Land-ready at What changed:
Evidence:
No product-runtime, provider, or channel proof gap applies to this maintainer-tooling-only change. |
|
Codex review: found issues before merge. Reviewed August 16, 2026, 11:52 AM ET / 15:52 UTC. ClawSweeper reviewWhat this changesThe PR updates pull-request CI scripts to use the Actions REST API for exact-SHA workflow runs and to transfer shim authentication to a selected plain GitHub CLI binary. Merge readinessKeep this maintainer-owned PR open: its new shell-only credential bridge does not run on the actual Node CI-dispatch writer, so split authentication remains broken there. Priority: P2 Review scores
Verification
How this fits togetherOpenClaw’s PR tooling reads GitHub state through a PATH-selected CLI and dispatches CI through a separately selected plain CLI binary. The dispatcher then watches the resulting Actions run and reports its status to the operator. flowchart LR
A[PR command] --> B[Shell dispatcher]
B --> C[Node CI dispatcher]
C --> D[Selected plain GitHub CLI]
C --> E[Actions REST run lookup]
D --> F[CI workflow dispatch]
E --> G[Run URL and status]
Before merge
Findings
Agent review detailsSecurityNone. PR surfaceTests +40, Other +11. Total +51 across 7 files. View PR surface stats
Review metrics
Stored data modelPersistent data-model change detected: Merge-risk optionsMaintainer options:
Technical reviewBest possible solution: Move the credential handoff into the Node plain-CLI execution owner used by CI dispatch, remove or delegate the shell-only duplicate, and cover the full scripts/pr ci-dispatch route with split credentials. Do we have a high-confidence way to reproduce the issue? Yes—source-reproducible: with credentials only in the PATH shim, scripts/pr ci-dispatch launches Node without invoking the new shell bridge, then execPlainGh runs the selected binary without a token. Is this the best way to solve the issue? No: the REST API migration matches the installed GitHub CLI contract, but the credential repair belongs in the Node executor that actually performs CI dispatch. Full review comments:
Overall correctness: patch is incorrect AGENTS.md: found and applied where relevant. Codex review notes: model internal, reasoning high; reviewed against 5f561999a9d8. LabelsLabel changes:
Label justifications:
EvidenceWhat I checked:
Likely related people:
Rank-up movesOptional improvements that raise the rating; they are not merge blockers.
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
|
|
Merged via squash.
|
Summary
ghshim to the modern plainghbinary selected for PR writesgh run list --commitflagsTesting
node scripts/run-vitest.mjs test/scripts/plain-gh.test.ts test/scripts/watch-pr-ci.test.ts test/scripts/pr-ci-dispatch.test.ts(44 tests)OPENCLAW_CHECK_CHANGED_REMOTE_CHILD=1 pnpm check:changedgh 2.23.0against an exact PR headgh_plain api rate_limitusing selected/usr/local/bin/gh 2.97.0with no token pre-exported