[BUG] GitHub action fails
Preflight Checklist
- [x] I have searched existing issues and this hasn't been reported yet
- [x] This is a single bug report (please file separate reports for different bugs)
- [x] I am using the latest version of Claude Code
What's Wrong?
rror: Claude Code process exited with code 1
at Y (/home/runner/work/_actions/anthropics/claude-code-action/v1/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs:19:9033)
at emit (node:events:98:22)
at #handleOnExit (node:child_process:520:14)
Error: Action failed with error: SDK execution error: Error: Claude Code process exited with code 1
with this workflows/claude.yaml:
name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
permissions:
id-token: write
contents: write
pull-requests: write
jobs:
claude:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
What Should Happen?
Github action finilized successful
Error Messages/Logs
rror: Claude Code process exited with code 1
at Y (/home/runner/work/_actions/anthropics/claude-code-action/v1/node_modules/@anthropic-ai/claude-agent-sdk/sdk.mjs:19:9033)
at emit (node:events:98:22)
at #handleOnExit (node:child_process:520:14)
Error: Action failed with error: SDK execution error: Error: Claude Code process exited with code 1
Steps to Reproduce
name: Claude Code
on:
issue_comment:
types: [created]
pull_request_review_comment:
types: [created]
permissions:
id-token: write
contents: write
pull-requests: write
jobs:
claude:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: anthropics/claude-code-action@v1
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
Claude Model
None
Is this a regression?
Yes, this worked in a previous version
Last Working Version
_No response_
Claude Code Version
bun install v1.3.6 (d530ed99) + @actions/core@1.11.1 + @actions/github@6.0.1 + @anthropic-ai/claude-agent-sdk@0.2.63 + @modelcontextprotocol/sdk@1.16.0 + @octokit/graphql@8.2.2 + @octokit/rest@21.1.1 + @octokit/webhooks-types@7.6.1 + node-fetch@3.3.2 + shell-quote@1.8.3
Platform
Anthropic API
Operating System
Other Linux
Terminal/Shell
Terminal.app (macOS)
Additional Information
_No response_
This issue has 3 comments on GitHub. Read the full discussion on GitHub ↗