Skip to content

Commit e128ced

Browse files
committed
Explicitly use write perms for publish step
Previously these were set for the token by default. They're now disabled by default, and enabled only for publish pushes (tags).
1 parent 140d712 commit e128ced

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,12 @@ jobs:
143143
publish:
144144
name: Publish a release
145145
runs-on: "ubuntu-22.04"
146-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
147146
needs:
148147
- build
149148
- test-distributables
149+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
150+
permissions:
151+
contents: write
150152
steps:
151153
- name: Get our distributables
152154
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)