Skip to content

Add Claude Code GitHub Workflow#6

Merged
franzwarning merged 2 commits into
mainfrom
add-claude-github-actions-1769372522605
Jan 25, 2026
Merged

Add Claude Code GitHub Workflow#6
franzwarning merged 2 commits into
mainfrom
add-claude-github-actions-1769372522605

Conversation

@franzwarning
Copy link
Copy Markdown
Member

@franzwarning franzwarning commented Jan 25, 2026

🤖 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:

  • Bug fixes and improvements
  • Documentation updates
  • Implementing new features
  • Code reviews and suggestions
  • Writing tests
  • And more!

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

  • This workflow won't take effect until this PR is merged
  • @claude mentions won't work until after the merge is complete
  • The workflow runs automatically whenever Claude is mentioned in PR or issue comments
  • Claude gets access to the entire PR or issue context including files, diffs, and previous comments

Security

  • Our Anthropic API key is securely stored as a GitHub Actions secret
  • Only users with write access to the repository can trigger the workflow
  • All Claude runs are stored in the GitHub Actions run history
  • Claude's default tools are limited to reading/writing files and interacting with our repo by creating comments, branches, and commits.
  • We can add more allowed tools by adding them to the workflow file like:
allowed_tools: Bash(npm install),Bash(npm run build),Bash(npm run lint),Bash(npm run test)

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

  • Introduces claude.yml to trigger Claude via @claude mentions on issues/PR comments and review submissions; configures necessary permissions (including actions: read) and uses anthropics/claude-code-action@v1 with ANTHROPIC_API_KEY.
  • Adds claude-code-review.yml to automatically run Claude Code Review on PR events (opened, synchronize, ready_for_review, reopened) using the code-review@claude-code-plugins via 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.

@franzwarning franzwarning merged commit 89ee3fd into main Jan 25, 2026
3 checks passed
@franzwarning franzwarning deleted the add-claude-github-actions-1769372522605 branch January 25, 2026 20:22
Copy link
Copy Markdown

@cursor cursor Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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)

Fix in Cursor Fix in Web

pull_request_review_comment:
types: [created]
issues:
types: [opened, assigned]
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Fix in Cursor Fix in Web

@claude claude Bot mentioned this pull request May 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant