Skip to content

ci: fix permissions in the release.yml - #249

Merged
ikurakin-zededa merged 2 commits into
mainfrom
fix-typo-goreleaser
Oct 23, 2026
Merged

ikurakin-zededa merged 2 commits into
mainfrom
fix-typo-goreleaser

Conversation

@ikurakin-zededa

Copy link
Copy Markdown
Collaborator

Fix release workflow 403 when publishing artifacts

The v2.9.0-rc release run failed at goreleaser's publish step:

PATCH https://api.github.com/repos/zededa/terraform-provider-zedcloud/releases/420696997:
403 Resource not accessible by integration

The job's GITHUB_TOKEN had only Contents: read. release.yml doesn't declare
permissions, so it inherits the repo/org default, which is now read-only.
Creating or updating a release and uploading assets needs contents: write.

This grants contents: write to the release workflow only.

Follow-up: re-running the existing v2.9.0-rc run uses the workflow at the tagged
commit, so after merge either re-tag the RC on the new commit or cut v2.9.0-rc2.

@ikurakin-zededa
ikurakin-zededa merged commit 4c68a18 into main Oct 23, 2026
8 checks passed
@ikurakin-zededa
ikurakin-zededa deleted the fix-typo-goreleaser branch October 23, 2026 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants