Skip to content

Commit

Permalink
Move permissions on Build Wheels action.
Browse files Browse the repository at this point in the history
  • Loading branch information
atalman authored Dec 13, 2024
1 parent ebc4303 commit 174d238
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-wheels_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,7 @@ on:
schedule:
- cron: '0 0 * * *' # Runs at midnight UTC every day
workflow_dispatch:
permissions:
id-token: write
contents: read

jobs:
generate-matrix:
uses: pytorch/test-infra/.github/workflows/generate_binary_build_matrix.yml@main
Expand All @@ -31,6 +29,9 @@ jobs:
if: github.repository_owner == 'pytorch'
name: pytorch/ao
uses: pytorch/test-infra/.github/workflows/build_wheels_macos.yml@main
permissions:
id-token: write
contents: read
with:
repository: pytorch/ao
ref: ${{ github.head_ref || github.ref_name }}
Expand Down

0 comments on commit 174d238

Please sign in to comment.