Skip to content

Commit f6426cd

Browse files
authored
Fix linux_job_v2 after pytorch/test-infra#6104 (#1191)
1 parent 9733d6e commit f6426cd

File tree

4 files changed

+24
-0
lines changed

4 files changed

+24
-0
lines changed

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525
python_version: ["3.10"]
2626
cuda_arch_version: ["12.1"]
2727
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
28+
permissions:
29+
id-token: write
30+
contents: read
2831
with:
2932
repository: pytorch/tensordict
3033
upload-artifact: docs

.github/workflows/lint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ concurrency:
1818
jobs:
1919
python-source-and-configs:
2020
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
21+
permissions:
22+
id-token: write
23+
contents: read
2124
with:
2225
repository: pytorch/tensordict
2326
script: |
@@ -46,6 +49,9 @@ jobs:
4649
4750
c-source:
4851
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
52+
permissions:
53+
id-token: write
54+
contents: read
4955
with:
5056
repository: pytorch/tensordict
5157
script: |

.github/workflows/test-linux.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
cuda_arch_version: ["12.1"]
2727
fail-fast: false
2828
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
29+
permissions:
30+
id-token: write
31+
contents: read
2932
with:
3033
runner: linux.g5.4xlarge.nvidia.gpu
3134
repository: pytorch/tensordict
@@ -57,6 +60,9 @@ jobs:
5760
python_version: ["3.9", "3.10", "3.11", "3.12"]
5861
fail-fast: false
5962
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
63+
permissions:
64+
id-token: write
65+
contents: read
6066
with:
6167
runner: linux.12xlarge
6268
repository: pytorch/tensordict
@@ -84,6 +90,9 @@ jobs:
8490
cuda_arch_version: ["12.1"]
8591
fail-fast: false
8692
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
93+
permissions:
94+
id-token: write
95+
contents: read
8796
with:
8897
runner: linux.g5.4xlarge.nvidia.gpu
8998
repository: pytorch/tensordict
@@ -116,6 +125,9 @@ jobs:
116125
python_version: ["3.9", "3.12"]
117126
fail-fast: false
118127
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
128+
permissions:
129+
id-token: write
130+
contents: read
119131
with:
120132
runner: linux.12xlarge
121133
repository: pytorch/tensordict

.github/workflows/test-rl-gpu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
cuda_arch_version: ["12.1"]
2727
fail-fast: false
2828
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
29+
permissions:
30+
id-token: write
31+
contents: read
2932
with:
3033
runner: linux.g5.4xlarge.nvidia.gpu
3134
repository: pytorch/tensordict

0 commit comments

Comments
 (0)