Skip to content

Commit

Permalink
set contents: write to allow release creation (#21968)
Browse files Browse the repository at this point in the history
  • Loading branch information
tdyas authored Feb 18, 2025
1 parent c31622c commit a6baddc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
- release_info
permissions:
attestations: write
contents: read
contents: write
id-token: write
runs-on:
- self-hosted
Expand Down Expand Up @@ -131,7 +131,7 @@ jobs:
- release_info
permissions:
attestations: write
contents: read
contents: write
id-token: write
runs-on:
- ubuntu-22.04
Expand Down Expand Up @@ -256,7 +256,7 @@ jobs:
- release_info
permissions:
attestations: write
contents: read
contents: write
id-token: write
runs-on:
- macos-13
Expand Down Expand Up @@ -386,7 +386,7 @@ jobs:
- release_info
permissions:
attestations: write
contents: read
contents: write
id-token: write
runs-on:
- macos-14
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ jobs:
- classify_changes
permissions:
attestations: write
contents: read
contents: write
id-token: write
runs-on:
- self-hosted
Expand Down Expand Up @@ -412,7 +412,7 @@ jobs:
- classify_changes
permissions:
attestations: write
contents: read
contents: write
id-token: write
runs-on:
- ubuntu-22.04
Expand Down Expand Up @@ -484,7 +484,7 @@ jobs:
- classify_changes
permissions:
attestations: write
contents: read
contents: write
id-token: write
runs-on:
- macos-13
Expand Down Expand Up @@ -574,7 +574,7 @@ jobs:
- classify_changes
permissions:
attestations: write
contents: read
contents: write
id-token: write
runs-on:
- macos-14
Expand Down
2 changes: 1 addition & 1 deletion src/python/pants_release/generate_github_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -883,7 +883,7 @@ def build_wheels_job(
"runs-on": helper.runs_on(),
"permissions": {
"id-token": "write",
"contents": "read",
"contents": "write",
"attestations": "write",
},
**({"container": container} if container else {}),
Expand Down

0 comments on commit a6baddc

Please sign in to comment.