Skip to content

fix(ci): add issues:write permission for semantic-release#96

Merged
pablofmena merged 1 commit intomasterfrom
pablomena/fix/release-token-permissions
Apr 6, 2026
Merged

fix(ci): add issues:write permission for semantic-release#96
pablofmena merged 1 commit intomasterfrom
pablomena/fix/release-token-permissions

Conversation

@pablofmena
Copy link
Copy Markdown
Contributor

Scope

Follow-up to #89 (switch from CI_TOKEN PAT to GITHUB_TOKEN). The release workflow was failing because:

  1. @semantic-release/github needs issues: write to create failure-reporting issues — the workflow only granted contents: write and id-token: write.
  2. Branch protection on master restricted pushes to intervene-ci user and two teams — github-actions[bot] was not allowed. This was fixed separately by adding the GitHub Actions app to the push restrictions via the API.

Implementation

Adds issues: write to the workflow-level permissions block in release.yml.

The branch protection change (adding github-actions to the allowed push actors) was applied directly via the GitHub API and is already in effect.

How To Test

Merge this PR and wait for the next releasable commit to land on master. The release workflow should complete without the 403 Resource not accessible by integration error or the EGITNOPERMISSION push failure.

Made with Cursor

The @semantic-release/github plugin needs issues:write to create
failure-reporting issues. Without it, the release job fails with
403 "Resource not accessible by integration".

Made-with: Cursor
@pablofmena pablofmena self-assigned this Apr 6, 2026
@pablofmena pablofmena requested a review from a team April 6, 2026 08:40
@gemini-code-assist
Copy link
Copy Markdown

Note

Gemini is unable to generate a review for this pull request due to the file types involved not being currently supported.

@pablofmena pablofmena requested a review from higgins April 6, 2026 08:41
@pablofmena pablofmena merged commit 9d9f2d4 into master Apr 6, 2026
7 checks passed
@pablofmena pablofmena deleted the pablomena/fix/release-token-permissions branch April 6, 2026 08:42
@intervene-ci
Copy link
Copy Markdown
Collaborator

🎉 This PR is included in version 5.0.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants