anthropics / anthropics/claude-code-action

Add a `bun_version` input to avoid a duplicate setup-bun step

Đang mở
#1,714 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
area:installation enhancement feature-request p3
Ngôn ngữ chính
TypeScript
Star
8.9k
Fork
2.1k
Chỉ số merge pull request
Chỉ số pull request đang chờ

Mô tả

The action installs Bun itself, but pins the version (`1.3.14`). Consumers who need a different version must run `oven-sh/setup-bun` themselves and pass `path_to_bun_executable`, so Bun is set up twice in the workflow.

A `bun_version` input passed through to the action's own `setup-bun` step would remove the duplicate setup:

```yaml
- uses: anthropics/claude-code-action@v1
with:
bun_version: 1.4.0
```

This matters when a repo pins its runtime — `devEngines` with `onFail: "error"` rejects any other version, so the action's Bun breaks every command Claude runs.

It would also help #618: one action reference instead of two, so `oven-sh/setup-bun` no longer needs separate allowlisting.

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.