Skip to content

Add Claude Code GitHub Workflow - #7

Merged
codewiz merged 2 commits into
mainfrom
add-claude-github-actions-1794875744062
Nov 17, 2026
Merged

codewiz merged 2 commits into
mainfrom
add-claude-github-actions-1794875744062

Conversation

@codewiz

@codewiz codewiz commented Nov 17, 2026 •

Copy link
Copy Markdown
Owner

🤖 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 automated AI actions with OAuth token access to repo contents and PR/issue APIs; impact depends on secret configuration and who can trigger @claude.

Overview
Adds two new GitHub Actions workflows that wire the repository into Anthropic’s claude-code-action.

The Claude Code Review workflow runs on pull request open/update/reopen and invokes the code-review plugin to post automated review feedback (including inline comments via mcp__github_inline_comment__create_inline_comment), using secrets.CLAUDE_CODE_OAUTH_TOKEN.

The Claude Code workflow starts when someone mentions @claude in issue/PR comments, reviews, or issue bodies; it checks out the repo and runs the generic Claude Code action so the agent can respond from GitHub context, with actions: read so it can inspect CI results.

Reviewed by Cursor Bugbot for commit 831c5b2. Bugbot is set up for automated code reviews on this repo. Configure here.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-17T00:53:05.270512Z 831c5b2 PR opened
ℹ️ 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 831c5b2c24

ℹ️ 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".

runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Grant pull-request write access to automatic reviews

On each PR event, this job tries to post inline review comments, but pull-requests: read does not allow that write, so the automatic review cannot be delivered. The action's setup example grants pull-requests: write for this workflow.

Useful? React with 👍 / 👎.

Comment on lines +22 to +24
contents: read
pull-requests: read
issues: read

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Grant write access to the interactive assistant

When an @claude mention triggers this job, its read-only contents, issue, and pull-request permissions prevent Claude from replying to comments or pushing requested changes, so the interactive assistant cannot deliver its GitHub response. The action's setup example grants these scopes as write.

Useful? React with 👍 / 👎.

@codewiz
codewiz merged commit d1ca854 into main Nov 17, 2026
8 checks passed
@codewiz
codewiz deleted the add-claude-github-actions-1794875744062 branch November 17, 2026 02:54
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