anthropics / anthropics/claude-code-action
Claude code action is not initializing
- Lingua principale
- TypeScript
- Stelle
- 8.9k
- Fork
- 2.1k
- Merge medio
- 3g 9h
- PR unite (30g)
- 10
Descrizione
**Describe the bug**
Claude code action is not getting initialized but earlier it was ( 27th Nov , 2025 )
**To Reproduce**
Steps to reproduce the behavior:
```
uses: anthropics/claude-code-base-action@main
prompt: ""
anthropic_api_key: dummy
settings: |
{
"env": {
"MAX_THINKING_TOKENS": 20000,
"GH_TOKEN": "${{ steps.app-token.outputs.token }}",
"GITHUB_REPOSITORY": "${{ github.repository }}",
"BASH_DEFAULT_TIMEOUT_MS": 300000,
"BASH_MAX_TIMEOUT_MS": 300000,
"ANTHROPIC_BASE_URL": "https://api.portkey.ai",
"ANTHROPIC_AUTH_TOKEN": "dummy",
"ANTHROPIC_CUSTOM_HEADERS": "x-portkey-api-key: ${{ secrets.PORTKEY_API_KEY }}\nx-portkey-provider: key"
}
}
show_full_output: true
claude_args: |
--model us.anthropic.claude-sonnet-4-5-20250929-v1:0
--allowedTools mcp__sentry__*,mcp__sentry__get_sentry_issue,Read,View,Bash,Edit,Create,Write,str_replace_editor
--mcp-config /tmp/mcp-config.json
```
## Action output
```
Installation attempt 1...
Setting up Claude Code...
[?2026h[?2026l[?2026h[?2026l[?2026h[?2026l[?2026h[?2026l[?2026h[?2026l[?2026h
✔ Claude Code successfully installed!
Version: 2.1.9
Location: ~/.local/bin/claude
Next: Run claude --help to get started
[?2026l
✅ Installation complete!
Claude Code installed successfully
Run # Change to CLAUDE_WORKING_DIR if set (for running in custom directories)
Setting up Claude settings at: /home/runner/.claude/settings.json
Creating .claude directory...
No existing settings file found, creating new one
Processing settings input...
Parsed settings input as JSON
Merged settings with input settings
Updated settings with enableAllProjectMcpServers: true
Settings saved successfully
No marketplaces specified, skipping marketplace setup
No plugins specified, skipping plugins installation
Using Agent SDK path (USE_AGENT_SDK=unset)
Running Claude with prompt from file: /tmp/claude-action/prompt.txt
SDK options: {
"systemPrompt": {
"type": "preset",
"preset": "claude_code"
},
"pathToClaudeCodeExecutable": "",
"extraArgs": {
"model": "us.anthropic.claude-sonnet-4-5-20250929-v1:0",
"mcp-config": "/tmp/mcp-config.json"
},
"settingSources": [
"user",
"project",
"local"
]
}
```
**Expected behavior**
A clear and concise description of what you expected to happen.
**Screenshots**
If applicable, add screenshots to help explain your problem.
**Workflow yml file**
If it's not sensitive, consider including a paste of your full Claude workflow.yml file.
**API Provider**
[ ] Anthropic First-Party API (default)
[ ] AWS Bedrock
[ ] GCP Vertex
**Additional context**
Add any other context about the problem here.
Guida per i contributori
Apri la guida per i contributori
Valutazione
Questa issue non è ancora stata valutata.