Skip to content

fix(ci): grant contents write to the release job - #400

Merged
mogita merged 1 commit into
masterfrom
fix/release-contents-write
Sep 10, 2026
Merged

fix(ci): grant contents write to the release job#400
mogita merged 1 commit into
masterfrom
fix/release-contents-write

Conversation

@mogita

@mogita mogita commented Sep 10, 2026

Copy link
Copy Markdown
Contributor

Problem

The Release workflow creates the tag and GitHub release with GITHUB_TOKEN, but #395 pinned the workflow to contents: read. The v8.6.0 release run failed on Create release on GitHub with Error 403: Resource not accessible by integration, the first release since that change.

Solution

contents: write on the Release workflow, the minimum ncipollo/release-action needs to push a tag and create a release. pull-requests stays read-only.

How to verify

  1. Merge a release-* PR into master, or re-run the Release workflow on one.
  2. The Create release on GitHub step passes and the tag appears under Releases.

🤖 Generated with Claude Code

ncipollo/release-action creates the tag and release with GITHUB_TOKEN, which needs contents write. The least-privilege change left it at read, so the v8.6.0 release failed with a 403.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@mogita
mogita merged commit 00ef2f5 into master Sep 10, 2026
6 of 8 checks passed
@mogita
mogita deleted the fix/release-contents-write branch September 10, 2026 12:46
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.

1 participant