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

Đang mở
#689 1 bình luận 9 reaction 0 người được giao Xem trên GitHub
bug p2 provider:vertex
Ngôn ngữ chính
TypeScript
Star
8.9k
Fork
2.1k
Merge trung bình
3 ngày 9 giờ
Pull request đã merge (30 ngày)
10

Mô tả

**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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.