3333
3434 test-setup-linux-gcc :
3535 name : test-setup-linux-gcc
36- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
36+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
37+ permissions :
38+ id-token : write
39+ contents : read
3740 strategy :
3841 fail-fast : false
3942 with :
5558
5659 test-models-linux :
5760 name : test-models-linux
58- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
61+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
62+ permissions :
63+ id-token : write
64+ contents : read
5965 needs : gather-models
6066 strategy :
6167 matrix : ${{ fromJSON(needs.gather-models.outputs.models) }}
8288
8389 test-llama-runner-linux :
8490 name : test-llama-runner-linux
85- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
91+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
92+ permissions :
93+ id-token : write
94+ contents : read
8695 strategy :
8796 matrix :
8897 dtype : [fp32]
@@ -121,7 +130,10 @@ jobs:
121130
122131 test-llama-runner-linux-android :
123132 name : test-llama-runner-linux-android
124- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
133+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
134+ permissions :
135+ id-token : write
136+ contents : read
125137 strategy :
126138 fail-fast : false
127139 with :
@@ -141,7 +153,10 @@ jobs:
141153
142154 test-custom-ops-linux :
143155 name : test-custom-ops-linux
144- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
156+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
157+ permissions :
158+ id-token : write
159+ contents : read
145160 strategy :
146161 fail-fast : false
147162 with :
@@ -162,7 +177,10 @@ jobs:
162177
163178 test-selective-build-linux :
164179 name : test-selective-build-linux
165- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
180+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
181+ permissions :
182+ id-token : write
183+ contents : read
166184 strategy :
167185 fail-fast : false
168186 with :
@@ -183,7 +201,10 @@ jobs:
183201
184202 test-llava-runner-linux :
185203 name : test-llava-runner-linux
186- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
204+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
205+ permissions :
206+ id-token : write
207+ contents : read
187208 strategy :
188209 fail-fast : false
189210 with :
@@ -214,7 +235,10 @@ jobs:
214235
215236 test-quantized-aot-lib-linux :
216237 name : test-quantized-aot-lib-linux
217- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
238+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
239+ permissions :
240+ id-token : write
241+ contents : read
218242 strategy :
219243 fail-fast : false
220244 with :
@@ -234,7 +258,10 @@ jobs:
234258
235259 test-pybind-build-linux :
236260 name : test-pybind-build-linux
237- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
261+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
262+ permissions :
263+ id-token : write
264+ contents : read
238265 strategy :
239266 fail-fast : false
240267 with :
@@ -260,7 +287,10 @@ jobs:
260287
261288 test-binary-size-linux-gcc :
262289 name : test-binary-size-linux-gcc
263- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
290+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
291+ permissions :
292+ id-token : write
293+ contents : read
264294 strategy :
265295 fail-fast : false
266296 with :
@@ -292,7 +322,10 @@ jobs:
292322
293323 test-binary-size-linux :
294324 name : test-binary-size-linux
295- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
325+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
326+ permissions :
327+ id-token : write
328+ contents : read
296329 strategy :
297330 fail-fast : false
298331 with :
@@ -324,10 +357,16 @@ jobs:
324357
325358 android :
326359 uses : ./.github/workflows/_android.yml
360+ permissions :
361+ id-token : write
362+ contents : read
327363 needs : test-llama-runner-linux
328364
329365 unittest :
330366 uses : ./.github/workflows/_unittest.yml
367+ permissions :
368+ id-token : write
369+ contents : read
331370 with :
332371 docker-image : executorch-ubuntu-22.04-clang12
333372
@@ -365,7 +404,10 @@ jobs:
365404
366405 test-llama-runner-qnn-linux :
367406 name : test-llama-runner-qnn-linux
368- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
407+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
408+ permissions :
409+ id-token : write
410+ contents : read
369411 strategy :
370412 matrix :
371413 dtype : [fp32]
@@ -400,7 +442,10 @@ jobs:
400442
401443 test-qnn-models-linux :
402444 name : test-qnn-models-linux
403- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
445+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
446+ permissions :
447+ id-token : write
448+ contents : read
404449 strategy :
405450 fail-fast : false
406451 with :
@@ -419,7 +464,10 @@ jobs:
419464
420465 test-phi-3-mini-runner-linux :
421466 name : test-phi-3-mini-runner-linux
422- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
467+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
468+ permissions :
469+ id-token : write
470+ contents : read
423471 strategy :
424472 fail-fast : false
425473 with :
@@ -446,7 +494,10 @@ jobs:
446494
447495 test-eval_llama-wikitext-linux :
448496 name : test-eval_llama-wikitext-linux
449- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
497+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
498+ permissions :
499+ id-token : write
500+ contents : read
450501 strategy :
451502 fail-fast : false
452503 with :
@@ -473,7 +524,10 @@ jobs:
473524
474525 test-eval_llama-mmlu-linux :
475526 name : test-eval_llama-mmlu-linux
476- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
527+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
528+ permissions :
529+ id-token : write
530+ contents : read
477531 strategy :
478532 fail-fast : false
479533 with :
@@ -500,7 +554,10 @@ jobs:
500554
501555 test-llama_runner_eager-linux :
502556 name : test-llama_runner_eager-linux
503- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
557+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
558+ permissions :
559+ id-token : write
560+ contents : read
504561 strategy :
505562 fail-fast : false
506563 with :
@@ -527,7 +584,10 @@ jobs:
527584
528585 test-mediatek-models-linux :
529586 name : test-mediatek-models-linux
530- uses : pytorch/test-infra/.github/workflows/linux_job.yml@main
587+ uses : pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
588+ permissions :
589+ id-token : write
590+ contents : read
531591 strategy :
532592 fail-fast : false
533593 with :
0 commit comments