actions-marketplace-validations/Claude Code Base Action
Run Claude Code in GitHub Actions workflows
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Mar 21, 2026
- License
- MIT
Pinned Snippet
uses: actions-marketplace-validations/anthropics_claude-code-base-action@1898ec3bf2c3d088af9dcd97f63de16c8ebe832d # no releases — HEAD as of 2026-07-13tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| prompt | The prompt to send to Claude Code (mutually exclusive with prompt_file) | no | "" |
| prompt_file | Path to a file containing the prompt to send to Claude Code (mutually exclusive with prompt) | no | "" |
| settings | Claude Code settings as JSON string or path to settings JSON file | no | "" |
| claude_args | Additional arguments to pass directly to Claude CLI (e.g., '--max-turns 3 --mcp-config /path/to/config.json') | no | "" |
| anthropic_api_key | Anthropic API key (required for direct Anthropic API) | no | "" |
| claude_code_oauth_token | Claude Code OAuth token (alternative to anthropic_api_key) | no | "" |
| use_bedrock | Use Amazon Bedrock with OIDC authentication instead of direct Anthropic API | no | false |
| use_vertex | Use Google Vertex AI with OIDC authentication instead of direct Anthropic API | no | false |
| use_foundry | Use Microsoft Foundry with OIDC authentication instead of direct Anthropic API | no | false |
| use_node_cache | Whether to use Node.js dependency caching (set to true only for Node.js projects with lock files) | no | false |
| path_to_claude_code_executable | Optional path to a custom Claude Code executable. If provided, skips automatic installation and uses this executable instead. WARNING: Using an older version may cause problems if the action begins taking advantage of new Claude Code features. This input is typically not needed unless you're debugging something specific or have unique needs in your environment. | no | "" |
| path_to_bun_executable | Optional path to a custom Bun executable. If provided, skips automatic Bun installation and uses this executable instead. WARNING: Using an incompatible version may cause problems if the action requires specific Bun features. This input is typically not needed unless you're debugging something specific or have unique needs in your environment. | no | "" |
| show_full_output | Show full JSON output from Claude Code. WARNING: This outputs ALL Claude messages including tool execution results which may contain secrets, API keys, or other sensitive information. These logs are publicly visible in GitHub Actions. Only enable for debugging in non-sensitive environments. | no | false |
| plugins | Newline-separated list of Claude Code plugin names to install (e.g., 'code-review@claude-code-plugins feature-dev@claude-code-plugins') | no | "" |
| plugin_marketplaces | Newline-separated list of Claude Code plugin marketplace Git URLs to install from (e.g., 'https://github.com/user/marketplace1.git https://github.com/user/marketplace2.git') | no | "" |
Outputs
| name | description |
|---|---|
| conclusion | Execution status of Claude Code ('success' or 'failure') |
| execution_file | Path to the JSON file containing Claude Code execution log |
| structured_output | JSON string containing all structured output fields when --json-schema is provided in claude_args (use fromJSON() or jq to parse) |
| session_id | The Claude Code session ID that can be used with --resume to continue this conversation |