Repository navigation
ci: authenticate the review action with a Claude Code OAuth token - #11
Merged
Merged
Conversation
The API key path needs a prepaid credit balance; the org uses a Claude subscription. Switch the action to claude_code_oauth_token, reading CLAUDE_CODE_OAUTH_TOKEN (from `claude setup-token`). Same skip-when-unset gate as before. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_017RYiDstNPvrtMqDr3cEqY4
jacobyoby
pushed a commit
that referenced
this pull request
Sep 11, 2026
Follow #11: the review action now reads CLAUDE_CODE_OAUTH_TOKEN because the API-key path needs a prepaid credit balance the org does not carry — the first real review run on this PR failed after 435 ms with is_error:true and zero cost. Use the same secret and the same skip-when-unset gate here so the two workflows cannot drift apart on how they authenticate. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VzsJf6bUyYZdq3kxJ8DGix
jacobyoby
pushed a commit
to jacobrakaiFoundation/beanstalk
that referenced
this pull request
Sep 11, 2026
Same change as jacobrakaiFoundation/.github#11 and #10: the API-key path needs a prepaid credit balance the org does not carry, so the action fails in under a second with is_error:true. Read CLAUDE_CODE_OAUTH_TOKEN (from `claude setup-token`) instead, with the same skip-when-unset gate. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VzsJf6bUyYZdq3kxJ8DGix
This was referenced Sep 11, 2026
jacobyoby
added a commit
that referenced
this pull request
Sep 11, 2026
* ci: add @claude on-demand alongside the automatic review claude.yml runs Claude in tag mode: only when someone with write access writes `@claude` in an issue, pull request comment or review. The job is gated on the mention itself, so ordinary comments never start a runner, and there is no `prompt` input — a prompt is what would turn this into an every-event automation. It sits beside claude-code-review.yml rather than replacing it; dropping the automatic review later is deleting one file. `id-token: write` is included. I removed it from the review workflow earlier as unused and #9 restored it — correctly: the action exchanges the workflow's OIDC token to post as the Claude GitHub App, so tag mode needs it as well. Skips green while ANTHROPIC_API_KEY is not visible to this repository. Actions pinned to commit SHAs; the claude-code-action pin is the commit its annotated v1 tag dereferences to, not the tag object. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VzsJf6bUyYZdq3kxJ8DGix * ci: authenticate @claude with the Claude Code OAuth token Follow #11: the review action now reads CLAUDE_CODE_OAUTH_TOKEN because the API-key path needs a prepaid credit balance the org does not carry — the first real review run on this PR failed after 435 ms with is_error:true and zero cost. Use the same secret and the same skip-when-unset gate here so the two workflows cannot drift apart on how they authenticate. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VzsJf6bUyYZdq3kxJ8DGix --------- Co-authored-by: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The API-key path requires a prepaid credit balance — PR #8 failed with "Your credit balance is too low to access the Anthropic API" even though the key itself was valid. The org is on a Claude subscription, so switch the action to
claude_code_oauth_token, reading aCLAUDE_CODE_OAUTH_TOKENsecret generated byclaude setup-token.The skip-when-unset gate is unchanged: no secret, no review, no red check.
The review will not run on this PR (the action refuses when the workflow file differs from
main); it will run on #8 after merge, once the secret is set.🤖 Generated with Claude Code
https://claude.ai/code/session_017RYiDstNPvrtMqDr3cEqY4