Add Claude Code GitHub Workflow#4
Conversation
|
@claude hey man! |
|
Claude finished @alexandephilia's task in 15s —— View job Hey @alexandephilia! 👋 I'm Claude, your AI coding assistant — now fully set up in this repo thanks to the workflow you just merged! Here's what you can do with me:
Just mention
Looking forward to helping out! 🚀 |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 30b62d5e8b
ℹ️ 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".
| name: Claude Code | ||
|
|
||
| on: | ||
| issue_comment: |
There was a problem hiding this comment.
Remove duplicate Claude trigger workflow
Adding this file introduces a second workflow with the same name, event triggers, and @claude gate that already exist in .github/workflows/Claude.yml, so a single mention will start two independent Claude jobs. That can produce duplicate/conflicting bot responses and unnecessary action spend, and one run may fail independently depending on which secret is configured (ANTHROPIC_API_KEY vs CLAUDE_CODE_OAUTH_TOKEN). Prefer updating/replacing the existing workflow instead of adding a parallel case-variant file.
Useful? React with 👍 / 👎.
| 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.
🔴 claude.yml has read-only permissions, preventing Claude from posting responses
The claude.yml workflow sets pull-requests: read and issues: read permissions, but claude-code-action needs write access to post comments on PRs and issues in response to @claude mentions. The previous version of this workflow (visible at commit 0000d47) correctly had contents: write, pull-requests: write, and issues: write. With read-only permissions, the action will fail with a 403 permission error when attempting to write any response.
| contents: read | |
| pull-requests: read | |
| issues: read | |
| id-token: write | |
| actions: read # Required for Claude to read CI results on PRs | |
| contents: write | |
| pull-requests: write | |
| issues: write | |
| id-token: write | |
| actions: read # Required for Claude to read CI results on PRs |
Was this helpful? React with 👍 or 👎 to provide feedback.
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| issues: read | ||
| id-token: write |
There was a problem hiding this comment.
🔴 claude-code-review.yml has read-only pull-requests permission, preventing review comments
The claude-code-review.yml workflow sets pull-requests: read, but the Claude code review action needs pull-requests: write to post its review findings as PR comments. With read-only permissions, the action will fail with a 403 error when attempting to create review comments on the pull request.
| permissions: | |
| contents: read | |
| pull-requests: read | |
| issues: read | |
| id-token: write | |
| contents: read | |
| pull-requests: write | |
| issues: write | |
| id-token: write |
Was this helpful? React with 👍 or 👎 to provide feedback.
🤖 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!