Skip to content

fix: add permissions for release-please job#680

Merged
nieblara merged 1 commit intomainfrom
chore/update-release-please-action
Apr 15, 2026
Merged

fix: add permissions for release-please job#680
nieblara merged 1 commit intomainfrom
chore/update-release-please-action

Conversation

@nieblara
Copy link
Copy Markdown
Contributor

@nieblara nieblara commented Apr 15, 2026

Summary

  • Add contents: write and pull-requests: write permissions to the release-please job so it can create/update its release PR git tree via the GitHub API
  • Fixes "Error adding to tree" failure from release-please

Test plan

  • Verify release-please workflow succeeds on the next push to main

Made with Cursor


Note

Medium Risk
Elevates workflow token privileges (contents: write, pull-requests: write), which is security-sensitive but scoped to a single job and only affects the release automation workflow.

Overview
Fixes release automation failures by adding explicit GITHUB_TOKEN permissions to the release-please job.

The workflow now grants contents: write and pull-requests: write so release-please can create/update the release PR git tree via the GitHub API when running on pushes to main.

Reviewed by Cursor Bugbot for commit c22e90b. Bugbot is set up for automated code reviews on this repo. Configure here.

The release-please job needs contents:write and pull-requests:write
to create/update its release PR git tree via the GitHub API.

Made-with: Cursor
@nieblara nieblara merged commit 0f2645d into main Apr 15, 2026
17 checks passed
@nieblara nieblara deleted the chore/update-release-please-action branch April 15, 2026 15:21
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