Skip to content

Commit 5ec029a

Browse files
committed
Add missing token and permission for gh cli
1 parent 9bc927d commit 5ec029a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/publish-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,8 @@ jobs:
131131
needs: [check-version, create-signed-update-site]
132132
runs-on: ubuntu-latest
133133
timeout-minutes: 10
134+
permissions:
135+
contents: write # to create a release (via gh cli)
134136
defaults:
135137
run:
136138
shell: bash
@@ -156,6 +158,8 @@ jobs:
156158
echo "${RELEASE_BODY}" > release_notes_prepared.md
157159
- name: Create Release
158160
env:
161+
# Token required for GH CLI:
162+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
159163
TAG_NAME: ${{ github.event.workflow_run.head_branch }}
160164
VERSION: ${{ needs.check-version.outputs.VERSION }}
161165
run: |

0 commit comments

Comments
 (0)