Skip to content

Commit 86eac6a

Browse files
fix(ci): add missing permissions to publish-charts and publish-cli jobs
Add required permissions blocks to fix 403 Forbidden errors when publishing charts to ghcr.io and uploading CLI release assets. - publish-charts: add packages:write for ghcr.io chart publishing - publish-cli: add contents:write for release asset uploads
1 parent 23646ea commit 86eac6a

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

.github/workflows/release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,9 @@ jobs:
127127

128128
publish-charts:
129129
needs: publish-image
130+
permissions:
131+
contents: read
132+
packages: write # Used to push charts to `ghcr.io`
130133
runs-on: ubuntu-latest
131134
steps:
132135
- name: Determine which repository to use
@@ -175,6 +178,8 @@ jobs:
175178
176179
publish-cli:
177180
if: github.event_name == 'release'
181+
permissions:
182+
contents: write
178183
runs-on: ubuntu-latest
179184
container:
180185
image: golang:1.24.5-bookworm

0 commit comments

Comments
 (0)