Skip to content

Commit 3961189

Browse files
authored
ci(bench): install Bun via npm instead of the policy-blocked setup-bun action (#516)
Every workflow referencing oven-sh/setup-bun (Benchmark, Testbox, Benchmark docs) has died with a startup_failure since the action was introduced: the repository's allowed-actions policy only permits ubugeeei-prod-owned actions, GitHub-created actions, and an explicit pattern list that setup-bun is not on. The failure happens before any job starts, so the PR benchmark (including its Bun.markdown row and the base/head comparison comment) has never actually run. Install the same pinned Bun (1.3.14) through npm in a run step instead. Node is already provided by the preceding Setup Vite+ step, and the policy stays as strict as before - no new third-party action.
1 parent 2956b5a commit 3961189

3 files changed

Lines changed: 15 additions & 9 deletions

File tree

.github/workflows/benchmark-docs.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ jobs:
6161
# Bun >= 1.3.8. Pin a version that ships the API so the row is always
6262
# present (matches .github/workflows/benchmark.yml).
6363
- name: Setup Bun
64-
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
65-
with:
66-
bun-version: "1.3.14"
64+
# oven-sh/setup-bun is outside this repo's allowed-actions policy, so
65+
# every workflow that referenced it died with a startup_failure before
66+
# any job ran. Install the same pinned Bun through npm (Node is set up
67+
# by the preceding Setup Vite+ step) instead of widening the policy.
68+
run: npm install --global bun@1.3.14
6769

6870
- name: Regenerate benchmark docs
6971
run: vp run bench:docs

.github/workflows/benchmark.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@ jobs:
5757
# Bun.markdown row. Pin a version that ships the API so the comparison
5858
# always includes Bun.
5959
- name: Setup Bun
60-
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
61-
with:
62-
bun-version: "1.3.14"
60+
# oven-sh/setup-bun is outside this repo's allowed-actions policy, so
61+
# every workflow that referenced it died with a startup_failure before
62+
# any job ran. Install the same pinned Bun through npm (Node is set up
63+
# by the preceding Setup Vite+ step) instead of widening the policy.
64+
run: npm install --global bun@1.3.14
6365

6466
- name: Setup Rust
6567
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable

.github/workflows/testbox.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,11 @@ jobs:
4747
# Keep benchmark testboxes aligned with benchmark.yml and
4848
# benchmark-docs.yml so Bun.markdown.html is included in local remote runs.
4949
- name: Setup Bun
50-
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
51-
with:
52-
bun-version: "1.3.14"
50+
# oven-sh/setup-bun is outside this repo's allowed-actions policy, so
51+
# every workflow that referenced it died with a startup_failure before
52+
# any job ran. Install the same pinned Bun through npm (Node is set up
53+
# by the preceding Setup Vite+ step) instead of widening the policy.
54+
run: npm install --global bun@1.3.14
5355

5456
- name: Setup Rust
5557
uses: dtolnay/rust-toolchain@29eef336d9b2848a0b548edc03f92a220660cdb8 # stable

0 commit comments

Comments
 (0)