Skip to content

Commit 36815ef

Browse files
authored
Fix linux_job_v2 after pytorch/test-infra#6104 (#3873)
* Update ffmpeg.yml * Update lint.yml * Update build_docs.yml * Update unittest-linux-gpu.yml * Update unittest-linux-cpu.yml
1 parent b6d4675 commit 36815ef

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

.github/workflows/build_docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ jobs:
2323
# This job is required to pass for each PR.
2424
# The name of the required job is sensitive to matrix parameter.
2525
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
26+
permissions:
27+
id-token: write
28+
contents: read
2629
with:
2730
job-name: Build doc
2831
runner: linux.g5.4xlarge.nvidia.gpu

.github/workflows/ffmpeg.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ jobs:
1919
matrix:
2020
ffmpeg_version: ["4.4.4", "5.1.4", "6.1.1", "master"]
2121
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
22+
permissions:
23+
id-token: write
24+
contents: read
2225
with:
2326
job-name: Build
2427
upload-artifact: ffmpeg-lgpl
@@ -40,6 +43,9 @@ jobs:
4043
matrix:
4144
ffmpeg_version: ["4.4.4", "5.1.4", "6.1.1", "master"]
4245
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
46+
permissions:
47+
id-token: write
48+
contents: read
4349
with:
4450
job-name: Build
4551
upload-artifact: ffmpeg-lgpl

.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
jobs:
1313
python-source-and-configs:
1414
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
15+
permissions:
16+
id-token: write
17+
contents: read
1518
with:
1619
repository: pytorch/audio
1720
script: |

.github/workflows/unittest-linux-cpu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
python_version: ["3.8", "3.9", "3.10"]
1717
fail-fast: false
1818
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
19+
permissions:
20+
id-token: write
21+
contents: read
1922
with:
2023
runner: linux.12xlarge
2124
repository: pytorch/audio

.github/workflows/unittest-linux-gpu.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ jobs:
1717
cuda_arch_version: ["11.8"]
1818
fail-fast: false
1919
uses: pytorch/test-infra/.github/workflows/linux_job_v2.yml@main
20+
permissions:
21+
id-token: write
22+
contents: read
2023
with:
2124
runner: linux.g5.4xlarge.nvidia.gpu
2225
repository: pytorch/audio

0 commit comments

Comments
 (0)