Add Claude Code GitHub Workflow#1654
Conversation
|
Note Gemini is unable to generate a summary for this pull request due to the file types involved not being currently supported. |
There was a problem hiding this comment.
Pull Request Overview
This PR adds GitHub Actions integration for Claude Code, an AI coding assistant that can be triggered through @claude mentions in pull requests and issues. The integration includes both interactive Claude responses and automated code reviews.
- Adds workflow for @claude mention triggers in PR/issue comments
- Includes automated code review workflow for all PRs
- Configures secure authentication and appropriate repository permissions
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| .github/workflows/claude.yml | Main workflow for interactive Claude responses triggered by @claude mentions |
| .github/workflows/claude-code-review.yml | Automated code review workflow that runs on all PR creation/updates |
| # model: "claude-opus-4-1-20250805" | ||
|
|
||
| # Direct prompt for automated review (no @claude mention needed) | ||
| direct_prompt: | |
There was a problem hiding this comment.
Running automated code reviews on every PR synchronize event could be resource-intensive and costly. Consider adding conditions to limit when reviews run, such as only for external contributors or specific file paths, or use the commented-out filtering options.
| 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.
The 'actions: read' permission is duplicated - it's already listed on line 26 and again in the additional_permissions section on lines 40-41. Remove the duplication to avoid confusion.
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize] |
There was a problem hiding this comment.
The workflow lacks any access control - it will run for all PRs including those from external contributors. This could lead to unexpected API usage costs. Consider enabling the commented filtering by author association or specific users.
🤖 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!