-
Notifications
You must be signed in to change notification settings - Fork 18
Add claude workflow #378
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
base: master
Are you sure you want to change the base?
Add claude workflow #378
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,29 @@ | ||||||||||||
| name: Claude Code | ||||||||||||
|
|
||||||||||||
| on: | ||||||||||||
| issue_comment: | ||||||||||||
| types: [created] | ||||||||||||
| pull_request_review_comment: | ||||||||||||
| types: [created] | ||||||||||||
| issues: | ||||||||||||
| types: [opened, assigned] | ||||||||||||
| pull_request_review: | ||||||||||||
| types: [submitted] | ||||||||||||
|
|
||||||||||||
| jobs: | ||||||||||||
| claude: | ||||||||||||
| if: | | ||||||||||||
| (github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) || | ||||||||||||
| (github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) || | ||||||||||||
| (github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) || | ||||||||||||
| (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.assignees.*.login, 'claude[bot]'))) | ||||||||||||
|
||||||||||||
| (github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.assignees.*.login, 'claude[bot]'))) | |
| (github.event_name == 'issues' && contains(github.event.issue.body, '@claude')) |
Copilot
AI
Feb 23, 2026
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.
For better security, consider pinning the action to a specific commit SHA rather than using a mutable version tag like @v1. Version tags can be moved to point to different commits, potentially introducing malicious code. This is especially important for third-party actions that have write permissions to the repository.
For example, instead of:
- uses: anthropics/claude-code-action@v1Use:
- uses: anthropics/claude-code-action@<commit-sha> # v1This pattern is already used for the docker/login-action in build.yml:31, which pins to a specific SHA.
| - uses: anthropics/claude-code-action@v1 | |
| - uses: anthropics/claude-code-action@<commit-sha> # v1 |
Copilot
AI
Feb 23, 2026
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.
The step using the claude-code-action is missing a 'name' attribute. All other workflow steps in the repository include descriptive names for better readability and debugging. Add a name to this step, such as:
- name: Run Claude Code Action
uses: anthropics/claude-code-action@v1| - uses: anthropics/claude-code-action@v1 | |
| - name: Run Claude Code Action | |
| uses: anthropics/claude-code-action@v1 |
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.
This workflow is missing the concurrency configuration that is present in all other workflows in the repository. All other workflows include a concurrency setting to prevent multiple concurrent runs and manage workflow execution properly. Add the following after the 'on' section:
This ensures that for event-driven workflows like this one, only the most recent instance runs, which is important for managing Claude's responses to comments and avoiding confusion from multiple concurrent executions.