From 160a8977e63c8bc88336cdd172436a0898fcc8d9 Mon Sep 17 00:00:00 2001 From: yunyingk Date: Sun, 4 Oct 2026 14:21:05 +0800 Subject: [PATCH] chore(release): pin Bun toolchain for reproducible, supply-chain-safe releases - Pin oven-sh/setup-bun to v2.2.0 by full commit SHA instead of the mutable v2 tag, and pin bun-version to 1.3.14 instead of latest - Declare packageManager (bun@1.3.14) and engines (>=1.3.14) in package.json so local dev and CI use the same Bun toolchain --- .github/workflows/release.yml | 4 ++-- package.json | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1eb99fc..c373afd 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,9 +18,9 @@ jobs: uses: actions/checkout@v4 - name: Setup Bun - uses: oven-sh/setup-bun@v2 + uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0 with: - bun-version: latest + bun-version: 1.3.14 - name: Install dependencies run: bun install --frozen-lockfile diff --git a/package.json b/package.json index f8428f1..4c7fe9d 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,10 @@ "hose-use": "src/cli.ts", "hose-aipro": "src/cli.ts" }, + "packageManager": "bun@1.3.14", + "engines": { + "bun": ">=1.3.14" + }, "scripts": { "cli": "bun run src/cli.ts", "aipro": "bun run src/aipro-cli.ts",