Add Claude Code GitHub Workflow#11
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a65d1c8cf8
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| issues: read |
There was a problem hiding this comment.
Grant write scopes to handle @claude requests
When an @claude request asks for a reply or code changes, this job's explicitly read-only GITHUB_TOKEN prevents the action from creating/updating comments, branches, commits, or PRs. I checked the new Claude Code workflow plus the Anthropic v1 and GitHub Actions permission docs: Anthropic's examples require contents: write, pull-requests: write, and issues: write, and GitHub caps the token to the values declared in permissions. As written, the run can start and spend tokens but fail at the first write operation.
Useful? React with 👍 / 👎.
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| issues: read |
There was a problem hiding this comment.
Grant write scopes so reviews can be posted
On pull_request events this workflow invokes the code-review plugin, which needs to publish PR feedback, but the job token is capped to read-only repository/PR/issue access here. I checked the claude-code-review.yml flow and the Anthropic v1 permission guidance; without at least the documented write scopes for PR/issues (and contents if the action needs to create commits), the review action can analyze the PR but cannot submit or update the review comments it was added to produce.
Useful? React with 👍 / 👎.
🤖 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!