Skip to content

Commit 4315f8a

Browse files
authored
Fix linux_job_v2 after pytorch/test-infra#6104 (2) (#8873)
1 parent 86716c0 commit 4315f8a

File tree

4 files changed

+23
-1
lines changed

4 files changed

+23
-1
lines changed

.github/workflows/build-cmake.yml

+3
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ jobs:
2121
gpu-arch-version: "11.8"
2222
fail-fast: false
2323
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
24+
permissions:
25+
id-token: write
26+
contents: read
2427
with:
2528
repository: pytorch/vision
2629
runner: ${{ matrix.runner }}

.github/workflows/docs.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
jobs:
1616
build:
1717
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
18+
permissions:
19+
id-token: write
20+
contents: read
1821
with:
1922
repository: pytorch/vision
2023
upload-artifact: docs
@@ -79,9 +82,10 @@ jobs:
7982
needs: build
8083
if: github.repository == 'pytorch/vision' && github.event_name == 'push' &&
8184
((github.ref_type == 'branch' && github.ref_name == 'main') || github.ref_type == 'tag')
85+
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
8286
permissions:
87+
id-token: write
8388
contents: write
84-
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
8589
with:
8690
repository: pytorch/vision
8791
download-artifact: docs

.github/workflows/prototype-tests-linux-gpu.yml

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ jobs:
2424
gpu-arch-version: "11.8"
2525
fail-fast: false
2626
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
27+
permissions:
28+
id-token: write
29+
contents: read
2730
with:
2831
repository: pytorch/vision
2932
runner: ${{ matrix.runner }}

.github/workflows/tests.yml

+12
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ jobs:
2727
gpu-arch-version: "11.8"
2828
fail-fast: false
2929
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
30+
permissions:
31+
id-token: write
32+
contents: read
3033
with:
3134
repository: pytorch/vision
3235
runner: ${{ matrix.runner }}
@@ -85,6 +88,9 @@ jobs:
8588
gpu-arch-version: "11.8"
8689
fail-fast: false
8790
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
91+
permissions:
92+
id-token: write
93+
contents: read
8894
with:
8995
repository: pytorch/vision
9096
runner: ${{ matrix.runner }}
@@ -105,6 +111,9 @@ jobs:
105111
106112
onnx:
107113
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
114+
permissions:
115+
id-token: write
116+
contents: read
108117
with:
109118
repository: pytorch/vision
110119
test-infra-ref: main
@@ -136,6 +145,9 @@ jobs:
136145
137146
unittests-extended:
138147
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
148+
permissions:
149+
id-token: write
150+
contents: read
139151
if: contains(github.event.pull_request.labels.*.name, 'run-extended')
140152
with:
141153
repository: pytorch/vision

0 commit comments

Comments
 (0)