Skip to content

Commit cec281c

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 f3fc089 commit cec281c

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
@@ -102,8 +102,10 @@ jobs:
102102
publish:
103103
name: Publish a release
104104
runs-on: "ubuntu-22.04"
105-
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
106105
needs: build
106+
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
107+
permissions:
108+
contents: write
107109
steps:
108110
- name: Get all distributables
109111
uses: actions/download-artifact@v4

0 commit comments

Comments
 (0)