5959 # file, docs included. The `Check` job at the end of this file passes only
6060 # when every other job passes or was skipped by `changes`.
6161 lint :
62+ permissions :
63+ contents : read
64+ id-token : write
6265 name : Lint
6366 runs-on : blacksmith-8vcpu-ubuntu-2404
6467 timeout-minutes : 10
8285
8386 - name : Setup Vite+
8487 uses : ./.github/actions/setup-ci-deps
88+ with :
89+ task-cache-read-token : ${{ secrets.T3_TASK_CACHE_READ_TOKEN }}
8590
8691 # electron's install.js (run by ensure:electron) reads this cache before it
8792 # downloads from GitHub. The key changes only with the Electron version.
@@ -108,6 +113,9 @@ jobs:
108113 run : vp check
109114
110115 build :
116+ permissions :
117+ contents : read
118+ id-token : write
111119 name : Build and Typecheck
112120 needs : changes
113121 if : ${{ !cancelled() && (needs.changes.outputs.build != 'false' || needs.changes.outputs.typecheck != 'false') }}
@@ -139,6 +147,8 @@ jobs:
139147
140148 - name : Setup Vite+
141149 uses : ./.github/actions/setup-ci-deps
150+ with :
151+ task-cache-read-token : ${{ secrets.T3_TASK_CACHE_READ_TOKEN }}
142152
143153 # electron's install.js (run by ensure:electron) reads this cache before it
144154 # downloads from GitHub. The key changes only with the Electron version.
@@ -197,6 +207,9 @@ jobs:
197207 # dependency layers. The concurrency limit stays at the default 4 so peak load
198208 # per runner is unchanged.
199209 test :
210+ permissions :
211+ contents : read
212+ id-token : write
200213 name : Test
201214 needs : changes
202215 if : ${{ !cancelled() && needs.changes.outputs.test != 'false' }}
@@ -237,6 +250,8 @@ jobs:
237250
238251 - name : Setup Vite+
239252 uses : ./.github/actions/setup-ci-deps
253+ with :
254+ task-cache-read-token : ${{ secrets.T3_TASK_CACHE_READ_TOKEN }}
240255
241256 # electron's install.js (run by ensure:electron) reads this cache before it
242257 # downloads from GitHub. The key changes only with the Electron version.
@@ -278,6 +293,9 @@ jobs:
278293 # started last and ran alone for about 40s after everything else finished.
279294 # release.yml mirrors this test, test_web, and test_server split.
280295 test_web :
296+ permissions :
297+ contents : read
298+ id-token : write
281299 name : Test Web
282300 needs : changes
283301 if : ${{ !cancelled() && needs.changes.outputs.test_web != 'false' }}
@@ -295,6 +313,8 @@ jobs:
295313
296314 - name : Setup Vite+
297315 uses : ./.github/actions/setup-ci-deps
316+ with :
317+ task-cache-read-token : ${{ secrets.T3_TASK_CACHE_READ_TOKEN }}
298318
299319 # The browser project runs React tests in headless Chromium. Same cache key as
300320 # test_server, so both jobs share one downloaded browser.
@@ -333,6 +353,9 @@ jobs:
333353 # The shards are the longest jobs, so they gate themselves instead of waiting
334354 # ~15s for `changes`: a shard the change cannot affect stops after checkout.
335355 test_server :
356+ permissions :
357+ contents : read
358+ id-token : write
336359 name : Test Server ${{ matrix.shard }}
337360 runs-on : blacksmith-4vcpu-ubuntu-2404
338361 timeout-minutes : 10
@@ -359,6 +382,8 @@ jobs:
359382 - name : Setup Vite+
360383 if : steps.changes.outputs.test_server != 'false'
361384 uses : ./.github/actions/setup-ci-deps
385+ with :
386+ task-cache-read-token : ${{ secrets.T3_TASK_CACHE_READ_TOKEN }}
362387
363388 # No Electron setup here: `t3` (apps/server) has no Electron dependency
364389 # and none of its tests touch the runtime. Only the non-server `test`
@@ -495,6 +520,9 @@ jobs:
495520 run : vp run lint:mobile
496521
497522 release_smoke :
523+ permissions :
524+ contents : read
525+ id-token : write
498526 name : Release Smoke
499527 needs : changes
500528 if : ${{ !cancelled() && needs.changes.outputs.release_smoke != 'false' }}
@@ -512,6 +540,8 @@ jobs:
512540
513541 - name : Setup Vite+
514542 uses : ./.github/actions/setup-ci-deps
543+ with :
544+ task-cache-read-token : ${{ secrets.T3_TASK_CACHE_READ_TOKEN }}
515545
516546 - name : Exercise release-only workflow steps
517547 run : node scripts/release-smoke.ts
0 commit comments