[BUG] Github actions not running due to E2BIG argument list too long

Resolved 💬 4 comments Opened Jul 26, 2025 by KyleQ1 Closed Jan 5, 2026

Environment

  • Platform (select one):
  • [x] Anthropic API with github cli
  • Claude CLI version: 1.0.61
  • Operating System: macOS 15.5
  • Terminal: ITerm2

Bug Description

Trying to run claude in github actions for my pr. Was working great yesterday but today it no longer works due to bun command.
16 packages installed [72.00ms]
/home/runner/work/GetAesthetic/GetAesthetic
Setting up Claude settings at: /home/runner/.claude/settings.json
Creating .claude directory...
No existing settings file found, creating new one
Updated settings with enableAllProjectMcpServers: true
Settings saved successfully
Running Claude with prompt from file: /home/runner/work/_temp/claude-prompts/claude-prompt.txt
Error: Action failed with error: Error: Failed to spawn Claude Code process: E2BIG: argument list too long, posix_spawn 'bun'
Error during Claude execution: 230 | const query2 = new Query(childStdin, child.stdout, processExitPromise, canUseTool);
231 | child.on("error", (error) => {
232 | if (abortController.signal.aborted) {
233 | query2.setError(new AbortError("Claude Code process aborted by user"));
234 | } else {
235 | query2.setError(new Error(
Failed to spawn Claude Code process: ${error.message}));
^
error: Failed to spawn Claude Code process: E2BIG: argument list too long, posix_spawn 'bun'
at <anonymous> (/home/runner/work/_actions/anthropics/claude-code-action/beta/base-action/node_modules/@anthropic-ai/claude-code/sdk.mjs:235:23)
at emitError (node:events:39:23)
at <anonymous> (node:child_process:670:18)

Steps to Reproduce

Run claude code pr in github after setting it up. Hope this error occurs.

Expected Behavior

It should run the github action.

Actual Behavior

It does not run the github action

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗