ci: run @claude on Claude subscription + harden /prompt worktree guidance#975
Conversation
Switch the @claude PR responder from ANTHROPIC_API_KEY (pay-per-use API billing) to CLAUDE_CODE_OAUTH_TOKEN, so runs are authenticated against a Claude subscription (Claude Code usage). The token is minted locally with `claude setup-token` and stored as the CLAUDE_CODE_OAUTH_TOKEN repository secret; the job still skips gracefully with a warning when the secret is absent. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0164nBbEeLzQWWZqBn95o3MW
|
This pull request has been ignored for the connected project Preview Branches by Supabase. |
|
Warning Review limit reached
Next review available in: 34 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
…d worktree Tighten the worktree-per-task guidance in the /prompt skill so a pre-provisioned worktree is verified (current branch, clean git status, and merge base against the latest remote default branch) before it is trusted as fresh, instead of being used as-is. Addresses the CodeRabbit worktree-base finding from #959; the base could otherwise be stale. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_0164nBbEeLzQWWZqBn95o3MW
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
Summary
Two related follow-ups to the
@claudePR-responder work:1. Authenticate the
@claudeworkflow with a Claude subscription (.github/workflows/claude.yml)ANTHROPIC_API_KEY(pay-per-use API billing) toCLAUDE_CODE_OAUTH_TOKEN, so runs authenticate against a Claude subscription (Claude Code usage) instead of the metered API. Follow-up to ci: add @claude PR comment responder workflow #973 (merged); same trigger/gating/permissions, only the auth mechanism changed. The job still skips gracefully with a warning when the secret is absent.2. Harden the
/promptskill's worktree guidance (.claude/skills/prompt/references/coding-workflow.md)git status, and merge base against the latest remote default branch) before it's trusted as fresh, instead of being used as-is. Addresses the CodeRabbit worktree-base finding from feat: add /prompt skill with worktree-per-task workflow #959 (which merged before it could be applied). The other two feat: add /prompt skill with worktree-per-task workflow #959 findings needed no change: the SKILL.md size finding was a false positive (the 30-line/220-word limit applies only to.agents/skills/catalog skills, not this.claude/skills/skill —check:skillspasses), and the pr-policy 4-field assertion was already fixed in merged commit44c19d8.Action required before the
@claudeworkflow works (owner-only, one time):claude setup-tokenand copy the token.CLAUDE_CODE_OAUTH_TOKEN, value = that token.@claude <request>on any open PR to test.I can't do steps 1–2 for you: the token is minted from your logged-in Claude account, and repo secrets can only be set by a repo admin.
Verification
npm run verify:pr-localnode scripts/check-github-action-pins.mjs(pass),npm run check:skills(pass — catalog still valid), Prettier--checkon both changed files (pass), and a YAML parse of the workflow (valid).npm run verify:pr-local— changes are one workflow file (auth input swap) and one Markdown doc, with no application source, RAG, or build surface; the relevant Actions-pin and skills gates were run directly instead.npm run verify:ui— not applicable (no UI/routing/styling/browser change).Risk and rollout
@claudementions invoke Claude billed to the configured subscription token — the explicitly requested behavior. No effect until the secret is set.Clinical Governance Preflight
Not applicable — CI configuration and skill documentation only; does not touch ingestion, answer generation, search/ranking, source rendering, document access, privacy, production env, or clinical output.
Notes
@claudetrigger phrase.