Add Claude Code GitHub Workflow#1
Conversation
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| issues: read | ||
| id-token: write | ||
| actions: read # Required for Claude to read CI results on PRs |
There was a problem hiding this comment.
Grant write permissions
This workflow gives Claude only read-scoped GITHUB_TOKEN permissions, so the action can read context but cannot perform the documented tasks in the PR description such as creating comments, branches, or commits. Anthropic’s GitHub Actions docs list write permissions for repository contents and issues for this setup, so contents, issues, and likely pull-requests need write when Claude is expected to act on requests.
Prompt To Fix With AI
This is a comment left during a code review.
Path: .github/workflows/claude.yml
Line: 21-26
Comment:
**Grant write permissions**
This workflow gives Claude only read-scoped `GITHUB_TOKEN` permissions, so the action can read context but cannot perform the documented tasks in the PR description such as creating comments, branches, or commits. Anthropic’s GitHub Actions docs list write permissions for repository contents and issues for this setup, so `contents`, `issues`, and likely `pull-requests` need `write` when Claude is expected to act on requests.
How can I resolve this? If you propose a fix, please make it concise.
🤖 Installing Claude Code GitHub App
This PR adds a GitHub Actions workflow that enables Claude Code integration in our repository.
What is Claude Code?
Claude Code is an AI coding agent that can help with:
How it works
Once this PR is merged, we'll be able to interact with Claude by mentioning @claude in a pull request or issue comment.
Once the workflow is triggered, Claude will analyze the comment and surrounding context, and execute on the request in a GitHub action.
Important Notes
Security
There's more information in the Claude Code action repo.
After merging this PR, let's try mentioning @claude in a comment on any PR to get started!