Skip to content

Commit b78e1c0

Browse files
authored
feat: Add ANTHROPIC_CUSTOM_HEADERS environment variable support (#561)
1 parent abf075d commit b78e1c0

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ runs:
223223
ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}
224224
CLAUDE_CODE_OAUTH_TOKEN: ${{ inputs.claude_code_oauth_token }}
225225
ANTHROPIC_BASE_URL: ${{ env.ANTHROPIC_BASE_URL }}
226+
ANTHROPIC_CUSTOM_HEADERS: ${{ env.ANTHROPIC_CUSTOM_HEADERS }}
226227
CLAUDE_CODE_USE_BEDROCK: ${{ inputs.use_bedrock == 'true' && '1' || '' }}
227228
CLAUDE_CODE_USE_VERTEX: ${{ inputs.use_vertex == 'true' && '1' || '' }}
228229

base-action/action.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ runs:
131131
ANTHROPIC_API_KEY: ${{ inputs.anthropic_api_key }}
132132
CLAUDE_CODE_OAUTH_TOKEN: ${{ inputs.claude_code_oauth_token }}
133133
ANTHROPIC_BASE_URL: ${{ env.ANTHROPIC_BASE_URL }}
134+
ANTHROPIC_CUSTOM_HEADERS: ${{ env.ANTHROPIC_CUSTOM_HEADERS }}
134135
# Only set provider flags if explicitly true, since any value (including "false") is truthy
135136
CLAUDE_CODE_USE_BEDROCK: ${{ inputs.use_bedrock == 'true' && '1' || '' }}
136137
CLAUDE_CODE_USE_VERTEX: ${{ inputs.use_vertex == 'true' && '1' || '' }}

0 commit comments

Comments
 (0)