Conversation
5189681 to
791a25e
Compare
Comment on lines
+34
to
+38
| - name: Checkout PR branch (for PR comments) | ||
| if: github.event_name == 'issue_comment' && github.event.issue.pull_request | ||
| run: gh pr checkout ${{ github.event.issue.number }} | ||
| env: | ||
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This comment was marked as outdated.
This comment was marked as outdated.
Sorry, something went wrong.
Enables @claude mentions on PRs and issues to trigger Claude Code reviews via anthropics/claude-code-action. Includes review prompt with inline comment style, progress tracking, and allowed tools. Co-Authored-By: Claude Opus 4.6 <[email protected]>
791a25e to
8fa4859
Compare
| - name: Run Claude Code | ||
| uses: anthropics/claude-code-action@v1 | ||
| with: | ||
| claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }} |
There was a problem hiding this comment.
Bug: The workflow expects the CLAUDE_CODE_OAUTH_TOKEN secret, but the setup instructions incorrectly tell users to create ANTHROPIC_API_KEY, causing runtime authentication failure.
Severity: CRITICAL
Suggested Fix
To resolve this, either change the workflow to use anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }} to align with the documentation, or update the PR description to instruct users to set up the CLAUDE_CODE_OAUTH_TOKEN secret instead.
Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent.
Verify if this is a real issue. If it is, propose a fix; if not, explain why it's not
valid.
Location: .github/workflows/claude-code-review.yml#L49
Potential issue: The setup instructions in the pull request description direct users to
create a repository secret named `ANTHROPIC_API_KEY`. However, the GitHub Actions
workflow code is configured to use a different secret, `CLAUDE_CODE_OAUTH_TOKEN`, for
authentication. When a user follows the provided setup instructions, the workflow will
fail at runtime because the `CLAUDE_CODE_OAUTH_TOKEN` secret will not exist, causing the
action to fail during its authentication step. This prevents the feature from
functioning as intended for anyone following the documentation.
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.
Summary
.github/workflows/claude-code-review.ymlto enable@claudementions on PRs and issuesanthropics/claude-code-action@v1(official GitHub Action)@claudeSetup required
ANTHROPIC_API_KEYas a repository secret (Settings → Secrets → Actions)Test plan
@claude code reviewon a PR to verify🤖 Generated with Claude Code