Skip to content

Commit ff4a32c

Browse files
atalmanhuydhn
andauthored
Add oidc permissions to workflows (#3743)
Co-authored-by: Huy Do <[email protected]>
1 parent 08901ad commit ff4a32c

4 files changed

+16
-0
lines changed

.github/workflows/build-wheels-m1.yml

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
2222
cancel-in-progress: true
2323

24+
permissions:
25+
id-token: write
26+
contents: read
27+
2428
jobs:
2529
generate-matrix:
2630
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.2

.github/workflows/build_wheels_aarch64_linux.yml

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
2222
cancel-in-progress: true
2323

24+
permissions:
25+
id-token: write
26+
contents: read
27+
2428
jobs:
2529
generate-matrix:
2630
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.2

.github/workflows/build_wheels_linux.yml

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
2222
cancel-in-progress: true
2323

24+
permissions:
25+
id-token: write
26+
contents: read
27+
2428
jobs:
2529
generate-matrix:
2630
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.2

.github/workflows/build_wheels_macos.yml

+4
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref_name }}-${{ github.ref_type == 'branch' && github.sha }}-${{ github.event_name == 'workflow_dispatch' }}
2222
cancel-in-progress: true
2323

24+
permissions:
25+
id-token: write
26+
contents: read
27+
2428
jobs:
2529
generate-matrix:
2630
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@release/2.2

0 commit comments

Comments
 (0)