mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-23 06:54:13 +08:00
* feat: add Azure AI Foundry provider support Add support for Azure AI Foundry as a fourth cloud provider option alongside Anthropic API, AWS Bedrock, and Google Vertex AI. Changes: - Add use_foundry input to enable Azure AI Foundry authentication - Add Azure environment variables (ANTHROPIC_FOUNDRY_RESOURCE, ANTHROPIC_FOUNDRY_API_KEY, ANTHROPIC_FOUNDRY_BASE_URL) - Support automatic base URL construction from resource name - Add validation logic with mutual exclusivity checks for all providers - Add comprehensive test coverage (7 Azure-specific tests, 3 mutual exclusivity tests) - Add complete Azure AI Foundry documentation with OIDC and API key authentication - Update README to reference Azure AI Foundry support Features: - Primary authentication via Microsoft Entra ID (OIDC) using azure/login action - Optional API key authentication fallback - Custom model deployment name support via ANTHROPIC_DEFAULT_*_MODEL variables - Clear validation error messages for missing configuration All tests pass (25 validation tests total). 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * refactor: rename Azure AI Foundry to Microsoft Foundry and remove API key support - Rename all references from "Azure AI Foundry" to "Microsoft Foundry" - Remove ANTHROPIC_FOUNDRY_API_KEY support (OIDC only) - Update documentation to reflect OIDC-only authentication - Update tests to remove API key test case 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> * docs: simplify Microsoft Foundry setup and remove URL auto-construction - Link to official docs instead of duplicating setup instructions - Remove automatic base URL construction from resource name - Pass ANTHROPIC_FOUNDRY_BASE_URL as-is 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <noreply@anthropic.com>
72 lines
4.7 KiB
Markdown
72 lines
4.7 KiB
Markdown

|
|
|
|
# Claude Code Action
|
|
|
|
A general-purpose [Claude Code](https://claude.ai/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](./docs/migration-guide.md)** 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](https://claude.ai/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](./docs/cloud-providers.md).
|
|
|
|
## 📚 Solutions & Use Cases
|
|
|
|
Looking for specific automation patterns? Check our **[Solutions Guide](./docs/solutions.md)** 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
|
|
|
|
- **[Solutions Guide](./docs/solutions.md)** - **🎯 Ready-to-use automation patterns**
|
|
- **[Migration Guide](./docs/migration-guide.md)** - **⭐ Upgrading from v0.x to v1.0**
|
|
- [Setup Guide](./docs/setup.md) - Manual setup, custom GitHub apps, and security best practices
|
|
- [Usage Guide](./docs/usage.md) - Basic usage, workflow configuration, and input parameters
|
|
- [Custom Automations](./docs/custom-automations.md) - Examples of automated workflows and custom prompts
|
|
- [Configuration](./docs/configuration.md) - MCP servers, permissions, environment variables, and advanced settings
|
|
- [Experimental Features](./docs/experimental.md) - Execution modes and network restrictions
|
|
- [Cloud Providers](./docs/cloud-providers.md) - AWS Bedrock, Google Vertex AI, and Microsoft Foundry setup
|
|
- [Capabilities & Limitations](./docs/capabilities-and-limitations.md) - What Claude can and cannot do
|
|
- [Security](./docs/security.md) - Access control, permissions, and commit signing
|
|
- [FAQ](./docs/faq.md) - Common questions and troubleshooting
|
|
|
|
## 📚 FAQ
|
|
|
|
Having issues or questions? Check out our [Frequently Asked Questions](./docs/faq.md) 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.
|