Skip to content

Add Claude Code GitHub Workflow#4

Merged
alexandephilia merged 2 commits into
mainfrom
add-claude-github-actions-1773144885514
Mar 10, 2026
Merged

Add Claude Code GitHub Workflow#4
alexandephilia merged 2 commits into
mainfrom
add-claude-github-actions-1773144885514

Conversation

@alexandephilia

@alexandephilia alexandephilia commented Mar 10, 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!


Open with Devin

@alexandephilia alexandephilia merged commit 13b847c into main Mar 10, 2026
1 check passed
@alexandephilia

Copy link
Copy Markdown
Owner Author

@claude hey man!

@claude

claude Bot commented Mar 10, 2026

Copy link
Copy Markdown

Claude finished @alexandephilia's task in 15s —— View job


Hey @alexandephilia! 👋

I'm Claude, your AI coding assistant — now fully set up in this repo thanks to the workflow you just merged!

Here's what you can do with me:

  • Ask questions about the codebase
  • Request code reviews on any PR
  • Implement changes — bug fixes, new features, refactors
  • Write tests or documentation

Just mention @claude in any PR or issue comment with your request and I'll get to work. Try something like:

@claude can you review the proxy logic in kirolink.go?

Looking forward to helping out! 🚀

@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: 30b62d5e8b

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

Comment on lines +1 to +4
name: Claude Code

on:
issue_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.

P1 Badge Remove duplicate Claude trigger workflow

Adding this file introduces a second workflow with the same name, event triggers, and @claude gate that already exist in .github/workflows/Claude.yml, so a single mention will start two independent Claude jobs. That can produce duplicate/conflicting bot responses and unnecessary action spend, and one run may fail independently depending on which secret is configured (ANTHROPIC_API_KEY vs CLAUDE_CODE_OAUTH_TOKEN). Prefer updating/replacing the existing workflow instead of adding a parallel case-variant file.

Useful? React with 👍 / 👎.

@devin-ai-integration devin-ai-integration 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.

Devin Review found 2 potential issues.

View 3 additional findings in Devin Review.

Open in Devin Review

Comment on lines +22 to +26
contents: read
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.

🔴 claude.yml has read-only permissions, preventing Claude from posting responses

The claude.yml workflow sets pull-requests: read and issues: read permissions, but claude-code-action needs write access to post comments on PRs and issues in response to @claude mentions. The previous version of this workflow (visible at commit 0000d47) correctly had contents: write, pull-requests: write, and issues: write. With read-only permissions, the action will fail with a 403 permission error when attempting to write any response.

Suggested change
contents: read
pull-requests: read
issues: read
id-token: write
actions: read # Required for Claude to read CI results on PRs
contents: write
pull-requests: write
issues: write
id-token: write
actions: read # Required for Claude to read CI results on PRs
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

Comment on lines +22 to +26
permissions:
contents: read
pull-requests: read
issues: read
id-token: write

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔴 claude-code-review.yml has read-only pull-requests permission, preventing review comments

The claude-code-review.yml workflow sets pull-requests: read, but the Claude code review action needs pull-requests: write to post its review findings as PR comments. With read-only permissions, the action will fail with a 403 error when attempting to create review comments on the pull request.

Suggested change
permissions:
contents: read
pull-requests: read
issues: read
id-token: write
contents: read
pull-requests: write
issues: write
id-token: write
Open in Devin Review

Was this helpful? React with 👍 or 👎 to provide feedback.

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