Skip to content

Commit 4baa191

Browse files
authored
Update tests.yml
1 parent 73f3efe commit 4baa191

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 0 deletions
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)