-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
bugSomething isn't workingSomething isn't workingp2Non-showstopper bug or popular feature requestNon-showstopper bug or popular feature requestprovider:1pAnthropic First-Party APIAnthropic First-Party API
Description
Description
When using claude-code-action@v1 with a prompt parameter triggered by issues: [opened], the Claude Code process exits with code 1 after ~300-500ms with total_cost_usd: 0, meaning it never makes an API call.
Workflow
name: Issue Triage
on:
issues:
types: [opened]
jobs:
triage:
runs-on: ubuntu-latest
permissions:
contents: read
issues: write
pull-requests: read
id-token: write
steps:
- uses: actions/checkout@v4
- uses: anthropics/claude-code-action@v1
with:
claude_code_oauth_token: ${{ secrets.CLAUDE_CODE_OAUTH_TOKEN }}
prompt: |
Triage and label this issue.Error output
{
"type": "result",
"subtype": "success",
"is_error": true,
"duration_ms": 306,
"num_turns": 1,
"total_cost_usd": 0,
"permission_denials": []
}Followed by:
SDK execution error: 14 | depsCount: ${Q},
15 | deps: ${$}}`};var Cj={keyword:"dependencies"...
error: Claude Code process exited with code 1
What I've tried
- With and without
allowed_toolsparameter - Various
allowed_toolssyntaxes (:*and space wildcard) - Adding
pull-requests: readpermission - The
CLAUDE_CODE_OAUTH_TOKENsecret works (OIDC token exchange succeeds) - The same token works fine with the interactive
claude.ymlworkflow (issue_comment trigger)
Environment
anthropics/claude-code-action@v1(v1.0.45)- GitHub-hosted runner (ubuntu-latest)
- Authentication: OIDC via
CLAUDE_CODE_OAUTH_TOKEN
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingp2Non-showstopper bug or popular feature requestNon-showstopper bug or popular feature requestprovider:1pAnthropic First-Party APIAnthropic First-Party API