Repository navigation
ci: grant release-please job contents and pull-requests write permissions - #43
Merged
Merged
Conversation
joker23
approved these changes
Sep 29, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds an explicit
permissions:block (contents: write,pull-requests: write) to therelease-pleasejob in.github/workflows/release-please.yml.Why
release-please has failed on every push to
mainsince 2026-09-23 (the runs for #38, #40, #42), all with the same error:The
release-pleasejob passestoken: ${{secrets.GITHUB_TOKEN}}but had nopermissions:block, so it inherited the repository's defaultGITHUB_TOKENpermissions. It worked for every release through 2.2.0 (Apr 2025) because that default was read-write; it broke once the default was tightened to read-only, which removed the write access the job needs to create the release branch/PR. The workflow file itself has not changed since 2024-04-26 — only the environment did.(The lone "success" on 2026-09-23 was a
chore:push, which release-please treats as non-release-worthy, so it never reached the branch-creation step. The next release-worthy commits — #38, #40, #42 — all hit the 403.)Fix
Grant the two write scopes explicitly on the job that needs them, so the workflow no longer depends on the repo default. This brings the job to parity with the js-core monorepo's
release-pleasejob, which already setscontents: write+pull-requests: writeexplicitly and continues to run successfully under the sameGITHUB_TOKEN.Effect
Once merged, the push to
mainre-runs release-please with the corrected permissions and it will open the pending release PR (covering the currently-unreleased #38, #40, #42), which on merge publishes the next version.Notes / possible follow-ups (intentionally not in this PR)
google-github-actions/release-please-action@v4) is the old org name on a floating tag; js-core uses the renamedgoogleapis/release-please-actionpinned to a SHA. Modernizing it is optional and left out to keep this fix focused.Note
Overview
Fixes release-please 403 failures by giving the
release-pleasejob explicitGITHUB_TOKENscopes instead of relying on the repo default (which was tightened to read-only).The job now declares
contents: writeandpull-requests: writeso it can create the release branch/tag and open or update the release PR. The downstreamrelease-packagejob already had these permissions; onlyrelease-pleasewas missing them, which causedResource not accessible by integrationon recent pushes tomain.Reviewed by Cursor Bugbot for commit 97f01e5. Bugbot is set up for automated code reviews on this repo. Configure here.