Skip to content

chore: grant write permissions for GitHub release uploads - #24

Merged
OBerghmans merged 2 commits into
mainfrom
fix/github-actions-release-permissions
Oct 18, 2025
Merged

OBerghmans merged 2 commits into
mainfrom
fix/github-actions-release-permissions

Conversation

@OlivierCloudar

@OlivierCloudar OlivierCloudar commented Oct 18, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Changed workflow permissions from contents: read to contents: write to fix 403 errors when uploading release artifacts

Problem

The release workflow was failing with:

HTTP 403: Resource not accessible by integration

This occurred because the GITHUB_TOKEN only had read permissions, but gh release upload requires write permissions to attach artifacts to releases.

Solution

Updated .github/workflows/release.yml to grant contents: write permission.

Test plan

  • Merge this PR
  • Trigger a new release
  • Verify that release artifacts are successfully uploaded to the GitHub release

OlivierCloudar and others added 2 commits October 18, 2025 12:32
Change workflow permissions from 'contents: read' to 'contents: write'
to allow gh CLI to upload release artifacts. This fixes the 403 error
when attempting to attach build artifacts to GitHub releases.
@OBerghmans
OBerghmans merged commit 9dd4ea6 into main Oct 18, 2025
3 checks passed
@OBerghmans
OBerghmans deleted the fix/github-actions-release-permissions branch October 18, 2025 10:37
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