anthropics / anthropics/claude-code-action

BUG: Error: Process completed with exit code 1 - Run bun run ${GITHUB_ACTION_PATH}/src/entrypoints/update-comment-link.ts

Open
#689 1 comment 9 reactions 0 assignees View on GitHub
bug p2 provider:vertex
Dominant language
TypeScript
Stars
8.9k
Forks
2.1k
Avg merge
3d 9h
Merged PRs (30d)
10

Description

**Describe the bug**
Like 1/10 of every PRs, we get this error from Claude where the reviewer fails to run.

**To Reproduce**
Create PRs with the workflow file below.

**Expected behavior**
Reviewer to run 100% of the time.

**Screenshots**
Image

**Workflow yml file**
```
name: Claude Code PR Review

on:
pull_request:
types: [opened, reopened, ready_for_review, synchronize]
pull_request_review_comment:
types: [created]
issue_comment:
types: [created]

permissions:
contents: write
pull-requests: write
issues: write
actions: read
id-token: write

jobs:
claude-review:
runs-on: ubuntu-latest
timeout-minutes: 20
# Only run on: new PRs, new commits, or when @claude is mentioned in comments
if: |
(github.event_name == 'pull_request' && contains(fromJSON('["opened", "reopened", "ready_for_review", "synchronize"]'), github.event.action)) ||
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude') && github.event.issue.pull_request != null) ||
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude'))
steps:

- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Authenticate to Google Cloud
uses: google-github-actions/auth@v2
with:
workload_identity_provider: ${{ vars.WORKLOAD_IDENTITY_PROVIDER}}
service_account: ${{ vars.SERVICE_ACCOUNT }}

- name: Run Claude Code
id: claude-code
uses: anthropics/claude-code-action@v1
with:
use_vertex: true
track_progress: true
github_token: ${{ github.token }}
prompt: |
Omitted

claude_args: |
--model sonnet
--allowedTools Edit,Read,Write,Bash(npm:test),mcp__linear-mcp__create_issue,mcp__linear-mcp__list_issues,mcp__linear-mcp__update_issue,mcp__linear-mcp__list_teams,mcp__linear-mcp__list_projects,mcp__linear-mcp__search_issues,mcp__linear-mcp__get_issue
--mcp-config '{"mcpServers":{"linear-mcp":{"command":"npx","args":["-y","github:linear/linear-mcp"],"env":{"LINEAR_API_KEY":"${{ secrets.LINEAR_API_KEY }}"}}}}'

env:
CLOUD_ML_REGION: omitted
ANTHROPIC_VERTEX_PROJECT_ID: omitted

```

**API Provider**

[ ] Anthropic First-Party API (default)
[ ] AWS Bedrock
[x] GCP Vertex

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.