Skip to content

Commit 0880764

Browse files
authored
fix: grant contents:write to validate-release job (#860)
## Problem The release workflow fails at the `validate-release` job because `gh release view` cannot find draft releases. This is because the job only has `contents: read` permission, but GitHub requires `contents: write` to view draft releases. See failed run: https://github.com/astral-sh/setup-uv/actions/runs/24528604608 ## Fix Bump `validate-release` job permissions from `contents: read` to `contents: write`, matching the `release` job which already has this permission.
1 parent 717d6ab commit 0880764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
name: Validate release
1616
runs-on: ubuntu-latest
1717
permissions:
18-
contents: read
18+
contents: write
1919
steps:
2020
- name: Validate version and draft release
2121
env:

0 commit comments

Comments
 (0)