Skip to content

Commit 417ee90

Browse files
authored
Add oidc permissions to linux_job_v2 (#7703)
This allows it to be reusable for rocm workflows which require oidc login. Workflow: https://github.com/meta-pytorch/torchcomms/blob/main/.github/workflows/build_test_rccl.yaml Example of failure: meta-pytorch/torchcomms#427 Test change: pytorch/vision@79c1306 Test run: https://github.com/pytorch/vision/actions/runs/21459880198/job/61809653472
1 parent 165c8ed commit 417ee90

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/linux_job_v2.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,9 @@ on:
124124

125125
jobs:
126126
job:
127+
permissions:
128+
id-token: write
129+
contents: read
127130
strategy:
128131
fail-fast: false
129132
name: ${{ inputs.job-name }}

0 commit comments

Comments
 (0)