Skip to content

ci: pass anthropic_api_key as action input#23

Merged
moose-lab merged 1 commit into
mainfrom
ci/pass-api-key-via-input
May 26, 2026
Merged

ci: pass anthropic_api_key as action input#23
moose-lab merged 1 commit into
mainfrom
ci/pass-api-key-via-input

Conversation

@moose-lab

Copy link
Copy Markdown
Owner

Fixes the "Environment variable validation failed" error from claude-code-action@v1.

action.yml declares anthropic_api_key as a with: input. The action's internal validation reads from that input, not from the ANTHROPIC_API_KEY env var, despite what the README suggests. Verified by inspecting the action's logged inputs JSON: "anthropic_api_key": "" even with the env var hoisted to job level.

This change passes the secret through the input. Job-level env stays in place for ANTHROPIC_BASE_URL (no equivalent input exists).

After merge, retrigger PR #21 to validate the full happy path.

@moose-lab moose-lab merged commit f516aa1 into main May 26, 2026
3 of 4 checks passed
@moose-lab moose-lab deleted the ci/pass-api-key-via-input branch May 26, 2026 16:11
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