Skip to content

Commit cfda074

Browse files
committed
Grant contents write permission to release jobs
Since I restricted the default GitHub Actions token to read-only permissions, this permission needs to be explicitly granted to allow the creation of a release and the upload of release assets.
1 parent f4a0917 commit cfda074

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ jobs:
1212
create_release:
1313
runs-on: ubuntu-24.04
1414

15+
permissions:
16+
contents: write
17+
1518
steps:
1619
- name: Create a draft GitHub Release
1720
env:
@@ -27,6 +30,9 @@ jobs:
2730
runs-on: windows-2022
2831
needs: create_release
2932

33+
permissions:
34+
contents: write
35+
3036
strategy:
3137
matrix:
3238
target:

0 commit comments

Comments
 (0)