Skip to content

fix(ci): pin Bun to exact 1.2.23 in Claude workflow#28

Merged
beogip merged 1 commit into
mainfrom
fix/claude-workflow-bun-version
Jun 7, 2026
Merged

fix(ci): pin Bun to exact 1.2.23 in Claude workflow#28
beogip merged 1 commit into
mainfrom
fix/claude-workflow-bun-version

Conversation

@beogip

@beogip beogip commented Jun 7, 2026

Copy link
Copy Markdown
Owner

Problem

The Claude Code workflow fails at the Setup Bun step:

Downloading a new version of Bun: https://bun.sh/download/1.2.x/linux/x64?avx2=true&profile=false
Error: Unexpected HTTP response: 400

oven-sh/setup-bun injects bun-version verbatim into the bun.sh download URL. The semver wildcard 1.2.x is not a real download tag, so bun.sh returns 400. (This came from a Greptile P2 suggestion to pin off latest — the intent was right, the value wasn't a resolvable version.)

Fix

Pin to an exact, resolvable version: bun-version: "1.2.23" (latest stable in the 1.2 line). Keeps the reproducibility Greptile asked for, and bun.sh accepts it.

Failed run: https://github.com/beogip/code-first-agents-tool/actions/runs/27096483902

@beogip beogip merged commit 83bea42 into main Jun 7, 2026
2 checks passed
@beogip beogip deleted the fix/claude-workflow-bun-version branch June 7, 2026 15:51
@greptile-apps

greptile-apps Bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR fixes a CI breakage in the Claude Code workflow by changing the Bun version specifier from "1.2.x" to the exact version "1.2.23". The wildcard 1.2.x was passed verbatim to bun.sh's download URL, which returned HTTP 400 because it is not a valid download tag.

  • Pins Bun to 1.2.23 in .github/workflows/claude.yml, resolving the 400 error from oven-sh/setup-bun and restoring the workflow to a working state.
  • All other action references in the file remain pinned to full commit SHAs, which is consistent with the rest of the workflow's approach to reproducibility.

Confidence Score: 5/5

This is a safe, targeted one-line fix that restores a broken CI step with no impact on application logic.

The change replaces an unresolvable wildcard version string with an exact Bun release that bun.sh can serve. The root cause matches the observed failure, and no other parts of the workflow are touched.

No files require special attention.

Important Files Changed

Filename Overview
.github/workflows/claude.yml Single-line fix: changes bun-version from the unresolvable wildcard "1.2.x" to the exact pinned version "1.2.23", directly addressing the HTTP 400 download failure.

Sequence Diagram

sequenceDiagram
    participant GHA as GitHub Actions
    participant SetupBun as oven-sh/setup-bun
    participant BunSH as bun.sh

    Note over GHA,BunSH: Before fix (broken)
    GHA->>SetupBun: bun-version: "1.2.x"
    SetupBun->>BunSH: GET /download/1.2.x/linux/x64?...
    BunSH-->>SetupBun: HTTP 400 (invalid tag)
    SetupBun-->>GHA: Error: Unexpected HTTP response: 400

    Note over GHA,BunSH: After fix (working)
    GHA->>SetupBun: bun-version: "1.2.23"
    SetupBun->>BunSH: GET /download/1.2.23/linux/x64?...
    BunSH-->>SetupBun: HTTP 200 + binary
    SetupBun-->>GHA: Bun 1.2.23 installed ✓
Loading

Reviews (1): Last reviewed commit: "fix(ci): pin Bun to exact 1.2.23 — setup..." | Re-trigger Greptile

beogip pushed a commit that referenced this pull request Jun 7, 2026
## [0.1.2](v0.1.1...v0.1.2) (2026-06-07)

### Bug Fixes

* **ci:** pin Bun to exact 1.2.23 — setup-bun rejects 1.2.x wildcard ([#28](#28)) ([83bea42](83bea42))
@github-actions

github-actions Bot commented Jun 7, 2026

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.1.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant