Skip to content

Commit f26e771

Browse files
Add write permissions for the workflow to create releases
1 parent 5f2e5ab commit f26e771

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ on:
1111
jobs:
1212
create-release:
1313
runs-on: windows-latest
14+
15+
    permissions:
16+
      contents: write
17+
1418
steps:
1519
- name: Check out repository
1620
uses: actions/checkout@v4
@@ -21,9 +25,6 @@ jobs:
2125
- name: Copy scripts
2226
run: xcopy /e /i src bin
2327

24-
- name: Authenticate GitHub CLI
25-
run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token
26-
2728
- name: Publish release
2829
run: gh release create v${{ inputs.version }} --title "Release v${{ inputs.version }}" bin --notes "Manual release"
2930
env:

0 commit comments

Comments
 (0)