Skip to content

Commit 8d8aabb

Browse files
authored
Add read permissions to publish-crates job (astral-sh#16797)
1 parent f2e92b4 commit 8d8aabb

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -233,8 +233,7 @@ jobs:
233233
secrets: inherit
234234
# publish jobs get escalated permissions
235235
permissions:
236-
"id-token": "write"
237-
"packages": "write"
236+
"contents": "read"
238237

239238
# Create a GitHub Release while uploading all files to it
240239
announce:

dist-workspace.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ publish-jobs = ["./publish-pypi", "./publish-crates"]
6161
# Post-announce jobs to run in CI
6262
post-announce-jobs = ["./publish-docs"]
6363
# Custom permissions for GitHub Jobs
64-
github-custom-job-permissions = { "build-docker" = { packages = "write", contents = "read", id-token = "write", attestations = "write" } }
64+
github-custom-job-permissions = { "build-docker" = { packages = "write", contents = "read", id-token = "write", attestations = "write" }, "publish-crates" = { contents = "read" } }
6565
# Whether to install an updater program
6666
install-updater = false
6767
# Path that installers should place binaries in

0 commit comments

Comments
 (0)