Skip to content

Commit c4f221f

Browse files
committed
ci(bench): add permissions block, self-referential path filters, drop excess fetch-depth
- Add `permissions: {}` to lock down token scope for the read-only canary - Add `scripts/update-incremental-report.ts` and `tests/benchmarks/regression-guard.test.ts` to path filter so PRs that modify the canary machinery itself also trigger the canary - Remove `fetch-depth: 0` (full history not needed; canary compares against committed benchmark data, not git refs) - Align `node-version: 22` with the integer format used in ci.yml
1 parent 84e1a5f commit c4f221f

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

.github/workflows/perf-canary.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ on:
2424
- "scripts/incremental-benchmark.ts"
2525
- "scripts/lib/bench-config.ts"
2626
- "scripts/lib/fork-engine.ts"
27+
- "scripts/update-incremental-report.ts"
28+
- "tests/benchmarks/regression-guard.test.ts"
29+
30+
permissions: {}
2731

2832
concurrency:
2933
group: perf-canary-${{ github.ref }}
@@ -38,12 +42,10 @@ jobs:
3842

3943
steps:
4044
- uses: actions/checkout@v6
41-
with:
42-
fetch-depth: 0
4345

4446
- uses: actions/setup-node@v6
4547
with:
46-
node-version: "22"
48+
node-version: 22
4749
cache: "npm"
4850

4951
- name: Setup Rust

0 commit comments

Comments
 (0)