anthropics / anthropics/claude-code-action

Claude Code Action failing with SDK crash (Feb 23, 2026) - pinned SHA workaround no longer works

Open
#965 4 comments 17 reactions 0 assignees View on GitHub
area:installation bug p1 provider:1p
Dominant language
TypeScript
Stars
8.9k
Forks
2.1k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

## Summary

As of February 23, 2026, the claude-code-action is failing with the known AJV/SDK crash issue. **The previously documented workaround of pinning to SHA `01e756b34ef7a1447e9508f674143b07d20c2631` no longer works.**

## Environment

- **Action versions tested:**
- `anthropics/claude-code-action@v1` (installs Claude Code v2.1.49)
- `anthropics/claude-code-action@01e756b34ef7a1447e9508f674143b07d20c2631` (installs Claude Code v2.1.25)
- **Auth method:** `anthropic_api_key` (organization secret)
- **Runner:** ubuntu-latest
- **Repos affected:** Multiple repos in `digital-clipboard` organization

## Error Details

Both action versions fail with identical error pattern:

```
Installing Claude Code v2.1.25... (or v2.1.49)
Setting up Claude Code...
✔ Claude Code successfully installed!
Running Claude Code via SDK (full output hidden for security)...
"message": "Claude Code initialized",
"model": "claude-sonnet-4-5-20250929"
}
{
"type": "result",
"subtype": "success",
"is_error": true,
"duration_ms": 161,
"num_turns": 1,
"total_cost_usd": 0,
"permission_denials": []
}
SDK execution error: 14 | depsCount: ${Q},
15 | deps: ${$}}`};var Pj={keyword:"dependencies"...
error: Claude Code process exited with code 1
```

Key indicators:
- `total_cost_usd: 0` - No API calls made before crash
- `is_error: true` with `subtype: "success"` - Contradictory
- AJV validation error in minified SDK code
- Crash occurs immediately after initialization

## Workflow Configuration (Minimal)

```yaml
- uses: anthropics/claude-code-action@01e756b34ef7a1447e9508f674143b07d20c2631
with:
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
trigger_phrase: "@claude"
prompt: "Review this PR"
```

## What We've Tried

1. ✅ Using `@v1` tag - fails
2. ✅ Pinning to SHA `01e756b` (documented workaround from #892) - **also fails**
3. ✅ Minimal configuration (just API key, trigger, prompt) - fails
4. ✅ Removing `.claude/settings.local.json` from repo - still fails
5. ✅ Testing on multiple repositories - all fail

## Relationship to Existing Issues

This appears to be related to:
- #892 - SDK execution error in Agent SDK 0.2.27+
- #911 - Claude Code process exits with code 1 during PR review

However, the workaround from #892 (pinning to older SHA) **no longer resolves the issue** as of today.

## Impact

PR review automation is completely broken across all repositories. This is a P1/showstopper affecting CI/CD pipelines.

## Workflow Run Examples

- Failed with v1: https://github.com/digital-clipboard/st-james-place-accounts-ts/actions/runs/22296183011
- Failed with pinned SHA: https://github.com/digital-clipboard/st-james-place-accounts-ts/actions/runs/22296541406

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.