Skip to content

Add Claude Code GitHub Workflow - #1

Merged
KronosDP merged 2 commits into
masterfrom
add-claude-github-actions-1788252519835
Sep 1, 2026
Merged

KronosDP merged 2 commits into
masterfrom
add-claude-github-actions-1788252519835

Conversation

@KronosDP

@KronosDP KronosDP commented Sep 1, 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!

Copilot AI lite review requested due to automatic review settings September 1, 2026 08:49

Copilot AI 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.

🟡 Changes recommended

The workflows currently allow untrusted triggering with access to a repo secret and are missing required write permissions for the intended comment-posting behavior.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Adds GitHub Actions workflows to integrate the Anthropic Claude Code GitHub Action into this repository, enabling automated agent runs for ad-hoc requests and PR code review.

Changes:

  • Added a comment-/issue-/review-triggered workflow (claude.yml) to run Claude when @claude is mentioned.
  • Added a PR-triggered workflow (claude-code-review.yml) to run an automated code review via Claude plugins.
File summaries
File Description
.github/workflows/claude.yml Adds an event-driven workflow intended to run Claude on @claude mentions in issues/PR comments/reviews.
.github/workflows/claude-code-review.yml Adds an automated PR review workflow that runs Claude Code Review on PR lifecycle events.
Review details
  • Files reviewed: 2/2 changed files
  • Comments generated: 4
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment on lines +15 to +19
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.title, '@claude')))
Comment on lines +22 to +26
permissions:
contents: read
pull-requests: read
issues: read
id-token: write
Comment on lines +8 to +9
issues:
types: [opened, assigned]
Comment on lines +21 to +26
permissions:
contents: read
pull-requests: read
issues: read
id-token: write
actions: read # Required for Claude to read CI results on PRs
@KronosDP
KronosDP merged commit d6e656e into master Sep 1, 2026
2 of 3 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.

2 participants