Vendored fork of anthropics/claude-code-action with Forgejo port (yellowback diff cherry-picked on forgejo-port branch). main tracks upstream.
  • TypeScript 93.1%
  • JavaScript 5.5%
  • Shell 1.4%
Find a file
GitHub Actions ef50f123a3
Some checks failed
CI All / ci (push) Has been cancelled
CI All / test-base-action (push) Has been cancelled
CI All / test-custom-executables (push) Has been cancelled
CI All / test-mcp-servers (push) Has been cancelled
CI All / test-settings (push) Has been cancelled
CI All / test-structured-output (push) Has been cancelled
Sync Base Action to claude-code-base-action / Sync base-action to claude-code-base-action repository (push) Has been cancelled
chore: bump Claude Code to 2.1.123 and Agent SDK to 0.2.123
2026-04-29 03:29:24 +00:00
.claude Add subprocess isolation setup and git credential helper (#1132) 2026-03-31 12:36:51 +01:00
.github chore: bump model version in workflows (#1227) 2026-04-16 15:25:28 -07:00
base-action chore: bump Claude Code to 2.1.123 and Agent SDK to 0.2.123 2026-04-29 03:29:24 +00:00
docs docs: pull_request_target guidance and base-action trust model (#1250) 2026-04-28 10:01:48 -07:00
examples Use env vars for workflow_run context values in example workflows (#1125) 2026-04-04 20:10:11 -07:00
scripts Add subprocess isolation setup and git credential helper (#1132) 2026-03-31 12:36:51 +01:00
src chore: bump Claude Code to 2.1.123 and Agent SDK to 0.2.123 2026-04-29 03:29:24 +00:00
test fix: allow + in branch names (generated by Claude Code EnterWorktree) (#1248) 2026-04-22 22:17:44 -07:00
.gitignore remove .DS_Store (#69) 2025-05-27 13:26:03 -07:00
.npmrc Initial commit 2025-05-19 08:32:32 -07:00
.prettierignore feat: add formatted output for Claude Code execution reports (#18) 2025-07-03 10:59:12 -07:00
.prettierrc Initial commit 2025-05-19 08:32:32 -07:00
action.yml chore: bump oven-sh/setup-bun to v2.2.0 (Node.js 24) (#1238) 2026-04-19 17:53:46 -07:00
bun.lock chore: bump Claude Code to 2.1.123 and Agent SDK to 0.2.123 2026-04-29 03:29:24 +00:00
bunfig.toml fix: pin bun runtime config and improve log hygiene (#1174) 2026-04-05 07:42:02 -07:00
CLAUDE.md refactor: simplify mode system by removing Mode interface and registry (#899) 2026-02-05 17:22:30 -08:00
CODE_OF_CONDUCT.md Initial commit 2025-05-19 08:32:32 -07:00
CONTRIBUTING.md docs: remove references to non-existent test-local.sh script (#187) 2025-06-19 07:52:42 -07:00
github-app-manifest.json feat(docs): simplify custom GitHub App creation with manifest support (#620) 2025-10-27 08:26:46 -07:00
LICENSE Initial commit 2025-05-19 08:32:32 -07:00
package.json chore: bump Claude Code to 2.1.123 and Agent SDK to 0.2.123 2026-04-29 03:29:24 +00:00
README.md feat: add Microsoft Foundry provider support (#684) 2025-11-20 13:50:13 -08:00
ROADMAP.md feat: add flexible bot access control with allowed_bots option (#117) 2025-08-07 18:03:20 -07:00
SECURITY.md Initial commit 2025-05-19 08:32:32 -07:00
tsconfig.json feat: integrate claude-code-base-action as local subaction (#285) 2025-07-18 13:52:56 -07:00

Claude Code Action responding to a comment

Claude Code Action

A general-purpose Claude Code action for GitHub PRs and issues that can answer questions and implement code changes. This action intelligently detects when to activate based on your workflow context—whether responding to @claude mentions, issue assignments, or executing automation tasks with explicit prompts. It supports multiple authentication methods including Anthropic direct API, Amazon Bedrock, Google Vertex AI, and Microsoft Foundry.

Features

  • 🎯 Intelligent Mode Detection: Automatically selects the appropriate execution mode based on your workflow context—no configuration needed
  • 🤖 Interactive Code Assistant: Claude can answer questions about code, architecture, and programming
  • 🔍 Code Review: Analyzes PR changes and suggests improvements
  • Code Implementation: Can implement simple fixes, refactoring, and even new features
  • 💬 PR/Issue Integration: Works seamlessly with GitHub comments and PR reviews
  • 🛠️ Flexible Tool Access: Access to GitHub APIs and file operations (additional tools can be enabled via configuration)
  • 📋 Progress Tracking: Visual progress indicators with checkboxes that dynamically update as Claude completes tasks
  • 📊 Structured Outputs: Get validated JSON results that automatically become GitHub Action outputs for complex automations
  • 🏃 Runs on Your Infrastructure: The action executes entirely on your own GitHub runner (Anthropic API calls go to your chosen provider)
  • ⚙️ Simplified Configuration: Unified prompt and claude_args inputs provide clean, powerful configuration aligned with Claude Code SDK

📦 Upgrading from v0.x?

See our Migration Guide for step-by-step instructions on updating your workflows to v1.0. The new version simplifies configuration while maintaining compatibility with most existing setups.

Quickstart

The easiest way to set up this action is through Claude Code in the terminal. Just open claude and run /install-github-app.

This command will guide you through setting up the GitHub app and required secrets.

Note:

  • You must be a repository admin to install the GitHub app and add secrets
  • This quickstart method is only available for direct Anthropic API users. For AWS Bedrock, Google Vertex AI, or Microsoft Foundry setup, see docs/cloud-providers.md.

📚 Solutions & Use Cases

Looking for specific automation patterns? Check our Solutions Guide for complete working examples including:

  • 🔍 Automatic PR Code Review - Full review automation
  • 📂 Path-Specific Reviews - Trigger on critical file changes
  • 👥 External Contributor Reviews - Special handling for new contributors
  • 📝 Custom Review Checklists - Enforce team standards
  • 🔄 Scheduled Maintenance - Automated repository health checks
  • 🏷️ Issue Triage & Labeling - Automatic categorization
  • 📖 Documentation Sync - Keep docs updated with code changes
  • 🔒 Security-Focused Reviews - OWASP-aligned security analysis
  • 📊 DIY Progress Tracking - Create tracking comments in automation mode

Each solution includes complete working examples, configuration details, and expected outcomes.

Documentation

📚 FAQ

Having issues or questions? Check out our Frequently Asked Questions for solutions to common problems and detailed explanations of Claude's capabilities and limitations.

License

This project is licensed under the MIT License—see the LICENSE file for details.