Skip to content

Conversation

@claude
Copy link
Contributor

@claude claude bot commented Dec 28, 2025

Summary

This PR updates the documentation to reflect the OAuth authentication option (CLAUDE_CODE_OAUTH_TOKEN) for Claude-powered workflows. The underlying workflow implementation already supports OAuth (see recent commits #282, #283), but the documentation needed to be updated to guide users on how to use it.

  • Updated REUSABLE_WORKFLOWS.md with OAuth token documentation for _claude-main.yml and _claude-code-review.yml workflows
  • Added WORKFLOW_PAT documentation for resolving review threads via GraphQL API

Changes

  • .github/REUSABLE_WORKFLOWS.md: Updated secrets documentation tables for Claude workflows to include:
    • CLAUDE_CODE_OAUTH_TOKEN as an alternative to ANTHROPIC_API_KEY
    • WORKFLOW_PAT for optional GraphQL API operations
    • Updated notes clarifying that either API key or OAuth token is required

Note

The following files were prepared with OAuth documentation updates but could not be pushed due to GitHub App workflow permissions:

  • .github/workflows/README.md - Required secrets table update
  • .github/workflows/examples/08-claude-code-review-basic.yml - OAuth usage examples
  • .github/workflows/examples/09-claude-code-review-with-custom-prompt.yml - OAuth usage examples
  • .github/workflows/examples/10-claude-code-review-advanced.yml - OAuth usage examples

These changes will need to be applied separately by a user with workflow write permissions.

Testing

  • Markdown linting passes
  • Documentation accurately reflects the authentication options supported by the workflow

Linear Issue

Closes: https://linear.app/uniswap/issue/DEV-185/use-oauth-in-universe-for-claude-code-review-github-actions-workflow

Autonomous implementation using claude-opus-4-5-20251101


✨ Claude-Generated Content

Summary

Updates REUSABLE_WORKFLOWS.md documentation to reflect the OAuth authentication option (CLAUDE_CODE_OAUTH_TOKEN) for Claude-powered workflows. The underlying workflow implementation already supports OAuth (added in #281-#283), but the documentation needed to be updated to guide users on how to use it.

Changes

  • Updated secrets table for _claude-main.yml to document:
    • CLAUDE_CODE_OAUTH_TOKEN as an alternative to ANTHROPIC_API_KEY
    • Updated requirement notes to clarify that either API key or OAuth token is required
  • Updated secrets table for _claude-code-review.yml to document:
    • CLAUDE_CODE_OAUTH_TOKEN as an alternative to ANTHROPIC_API_KEY
    • WORKFLOW_PAT for optional GraphQL API operations (resolving review threads)
    • Updated requirement notes for authentication options

Notes

The OAuth token option enables Pro/Max users to authenticate using tokens generated via claude setup-token instead of requiring a pay-as-you-go API key. When both authentication methods are provided, the OAuth token takes precedence.
Closes: https://linear.app/uniswap/issue/DEV-185

Update REUSABLE_WORKFLOWS.md to document CLAUDE_CODE_OAUTH_TOKEN as an
alternative authentication method for Claude-powered workflows.

Changes:
- Add CLAUDE_CODE_OAUTH_TOKEN to secrets documentation for _claude-main.yml
- Add CLAUDE_CODE_OAUTH_TOKEN to secrets documentation for _claude-code-review.yml
- Add WORKFLOW_PAT documentation for resolving review threads via GraphQL
- Update notes to clarify that either API key or OAuth token is required

The OAuth token takes precedence over ANTHROPIC_API_KEY when both are
provided, which is useful for organizations that prefer OAuth-based
authentication for Claude Code.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <[email protected]>
@linear
Copy link

linear bot commented Dec 28, 2025

@vercel
Copy link

vercel bot commented Dec 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
ai-toolkit-slack-oauth-backend Ready Ready Preview, Comment Dec 28, 2025 10:12am

@github-actions
Copy link
Contributor

github-actions bot commented Dec 28, 2025

🤖 Claude Code Review

Review still valid — No new code changes detected since the last review.

💡 To force a fresh review, add a comment containing @request-claude-review.

Summary

This PR updates the documentation in .github/REUSABLE_WORKFLOWS.md to reflect OAuth token authentication support for Claude Code workflows.

Changes Reviewed

Documentation updates for _claude-main.yml (lines 250-256):

  • Updated secrets table to show ANTHROPIC_API_KEY is required only when CLAUDE_CODE_OAUTH_TOKEN is not provided
  • Added CLAUDE_CODE_OAUTH_TOKEN as an alternative authentication method
  • Updated note to clarify that one of the two authentication secrets must be provided

Documentation updates for _claude-code-review.yml (lines 1017-1023):

  • Same authentication flexibility documented as above
  • Added WORKFLOW_PAT secret documentation for resolving review threads via GraphQL API
  • Updated note with the same clarification about authentication requirements

Assessment

No issues found. This is a straightforward documentation update that:

  • Maintains consistent table formatting with the existing style
  • Provides clear descriptions for each secret
  • Accurately reflects the "Required" column semantics
  • Updates the notes section appropriately

The documentation changes are clear, accurate, and follow the established patterns in the file.


💡 Want a fresh review? Add a comment containing @request-claude-review to trigger a new review at any time.

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

📋 Review verdict: APPROVE

👆 The main review comment above is the source of truth for this PR review. It is automatically updated on each review cycle, so always refer to it for the most current feedback.

This formal review submission is for the verdict only.

@github-actions github-actions bot changed the title [DEV-185] Document OAuth authentication support for Claude Code workflows docs(workflows): add OAuth token documentation for Claude workflows Dec 28, 2025
@wkoutre wkoutre marked this pull request as ready for review January 8, 2026 16:26
@wkoutre wkoutre requested a review from a team as a code owner January 8, 2026 16:26
@wkoutre wkoutre merged commit b3d19cc into next Jan 8, 2026
16 of 17 checks passed
@wkoutre wkoutre deleted the claude/dev-185-use-oauth-in-universe-for-claude-code-re branch January 8, 2026 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants