-
Notifications
You must be signed in to change notification settings - Fork 5
chore: Add Claude Code GitHub Workflow #720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Insufficient permissions to post PR comments
High Severity
The workflow grants pull-requests: read permission but instructs Claude to use gh pr comment to post review comments. The gh CLI requires pull-requests: write permission to post comments. With only read access, the comment operation will fail at runtime. The same issue exists in both workflow files where pull-requests: read is configured but Bash(gh pr comment:*) is included in allowed tools.
Additional Locations (1)
| pull_request_review_comment: | ||
| types: [created] | ||
| issues: | ||
| types: [opened, assigned] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Workflow triggers on issues but cannot respond
Medium Severity
The workflow triggers on issue_comment events and issues: [opened, assigned] with @claude mentions, but Claude cannot respond to comments on regular issues (non-PRs). The issues: read permission prevents writing, and no gh issue comment tool is included in allowed_tools. The workflow will run and consume API resources but produce no visible response to users who mention @claude on issues.
| pull_request_review_comment: | ||
| types: [created] | ||
| issues: | ||
| types: [opened, assigned] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assigned event causes duplicate runs on same issue
Medium Severity
The issues trigger includes both opened and assigned event types, but the condition only checks if the issue contains @claude in its body or title. When an issue with @claude is opened, Claude runs. Later, when that same issue is assigned to someone, the assigned event fires and the condition passes again because @claude is still in the content, causing Claude to run a second time on the same mention.
🤖 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
Introduces automated AI assistance via GitHub Actions.
claude-code-review.ymlto auto-run Claude on PR open/update, posting review feedback using a guided prompt; minimal read permissions withid-token: writeclaude.ymlto respond to@claudementions in issues/PR comments and reviews; includes optionalactions: readpermission to access CI resultsanthropics/claude-code-action@v1, check out repo with shallow clone, and restrict execution to specificgh/yarncommands viaclaude_argsWritten by Cursor Bugbot for commit f6fedd8. This will update automatically on new commits. Configure here.