Skip to content

Add Claude Code GitHub Workflow#16

Merged
ccf merged 2 commits intomainfrom
add-claude-github-actions-1771165078291
Feb 15, 2026
Merged

Add Claude Code GitHub Workflow#16
ccf merged 2 commits intomainfrom
add-claude-github-actions-1771165078291

Conversation

@ccf
Copy link
Owner

@ccf ccf commented Feb 15, 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

Medium Risk
Introduces new CI automation that can act on repository context and run on PR/issue events; main risk is unintended workflow triggering/permissions if misconfigured or the secret is exposed.

Overview
Adds two new GitHub Actions workflows to integrate Claude Code into repository automation.

claude.yml runs anthropics/claude-code-action@v1 when @claude is mentioned in issue/PR comments or PR reviews, granting read permissions plus actions: read for CI visibility. claude-code-review.yml triggers an automated PR code review on key pull_request events using the code-review plugin and a fixed review prompt, authenticated via CLAUDE_CODE_OAUTH_TOKEN.

Written by Cursor Bugbot for commit c969fec. This will update automatically on new commits. Configure here.

Copy link

@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 1 potential issue.

Bugbot Autofix is OFF. To automatically fix reported issues with Cloud Agents, enable Autofix in the Cursor dashboard.

contents: read
pull-requests: read
issues: read
id-token: write
Copy link

Choose a reason for hiding this comment

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

Read-only permissions break Claude interactions

High Severity

Both workflows grant only read scopes for contents, pull-requests, and issues. anthropics/claude-code-action needs write access to post review comments, reply in threads, and apply requested repo changes, so @claude runs can complete analysis but cannot perform the intended write actions.

Additional Locations (1)

Fix in Cursor Fix in Web

@ccf ccf merged commit e6b2759 into main Feb 15, 2026
8 checks passed
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