Add Claude Code GitHub Workflow#6
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 2 potential issues.
Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.
| 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.
Workflows lack write permissions for Claude operations
High Severity
The workflows only grant read permissions for contents, pull-requests, and issues, but the PR description states Claude needs to "create comments, branches, and commits." For these operations, the workflows need contents: write, pull-requests: write, and issues: write permissions. Without write permissions, the workflows will run but Claude will be unable to respond to mentions, post code review comments, or make any repository changes.
Additional Locations (1)
| pull_request_review_comment: | ||
| types: [created] | ||
| issues: | ||
| types: [opened, assigned] |
There was a problem hiding this comment.
Assigned trigger causes duplicate Claude runs on same mention
Low Severity
The issues trigger includes both opened and assigned actions, but the if condition checks github.event.issue.body for @claude mentions in both cases. If an issue is created with @claude in the body, the workflow triggers on opened. When the same issue is later assigned, it triggers again (the body still contains @claude), causing Claude to process the same request twice. This could result in duplicate comments and unnecessary API consumption.
🤖 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!
Note
Add GitHub Actions for Claude Code integration and automated PR reviews
claude.ymlto trigger Claude via@claudementions on issues/PR comments and review submissions; configures necessary permissions (includingactions: read) and usesanthropics/claude-code-action@v1withANTHROPIC_API_KEY.claude-code-review.ymlto automatically run Claude Code Review on PR events (opened,synchronize,ready_for_review,reopened) using thecode-review@claude-code-pluginsvia the action and a predefined prompt; includes optional path/author filters.Written by Cursor Bugbot for commit d10dce0. This will update automatically on new commits. Configure here.