mirror of
https://github.com/anthropics/claude-code-action.git
synced 2026-01-22 22:44:13 +08:00
feat: add claude_env input for custom environment variables (#102)
* feat: add claude_env input for custom environment variables Co-authored-by: ashwin-ant <ashwin-ant@users.noreply.github.com> * docs: add claude_env input documentation with clear syntax examples Added comprehensive documentation for the new claude_env input including: - Entry in the Inputs table with description - Example in the basic workflow configuration - Detailed section in Advanced Configuration with practical use cases This makes it clear how users can pass custom environment variables to Claude Code execution in YAML format for CI/test setups. Co-authored-by: ashwin-ant <ashwin-ant@users.noreply.github.com> --------- Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com> Co-authored-by: ashwin-ant <ashwin-ant@users.noreply.github.com>
This commit is contained in:
@@ -41,6 +41,8 @@ inputs:
|
||||
default: ""
|
||||
mcp_config:
|
||||
description: "Additional MCP configuration (JSON string) that merges with the built-in GitHub MCP servers"
|
||||
claude_env:
|
||||
description: "Custom environment variables to pass to Claude Code execution (YAML format)"
|
||||
required: false
|
||||
default: ""
|
||||
|
||||
@@ -114,6 +116,7 @@ runs:
|
||||
use_bedrock: ${{ inputs.use_bedrock }}
|
||||
use_vertex: ${{ inputs.use_vertex }}
|
||||
anthropic_api_key: ${{ inputs.anthropic_api_key }}
|
||||
claude_env: ${{ inputs.claude_env }}
|
||||
env:
|
||||
# Model configuration
|
||||
ANTHROPIC_MODEL: ${{ inputs.model || inputs.anthropic_model }}
|
||||
|
||||
Reference in New Issue
Block a user