Repository navigation
Conversation
The release-please step authenticated with `secrets.RELEASE_PLEASE_TOKEN || secrets.PERSONAL_ACCESS_TOKEN`. Neither works: the first secret was never created, and the second was last rotated 2021-05-29 and is revoked. Every run of the Release workflow failed at this step with "Bad credentials", so no release PR, tag, or GitHub Release has ever been produced and the BREAKING CHANGE in 869c6a4 is still unpublished. Switch to `secrets.GITHUB_TOKEN`, which is always valid and already has the contents/pull-requests write scopes this job declares. Tradeoff, documented in the workflow: a PR created or updated by a workflow using GITHUB_TOKEN still creates `pull_request` runs, but they stop at "require approval" rather than executing. The release PR therefore still gets `Python package`, `Import Test` and `Version Consistency` runs; a user with write access has to approve them on the pull request page, and main has no branch protection forcing that before merge. Starting those runs automatically needs a PAT or GitHub App token, neither of which is available here and both of which are the repository owner's to mint.
loonghao
force-pushed
the
fix/release-release-please-bad-credentials-breaking-a05acbd40751
branch
from
October 11, 2026 15:57
c3f6f2c to
61c0031
Compare
loonghao
deleted the
fix/release-release-please-bad-credentials-breaking-a05acbd40751
branch
October 11, 2026 16:23
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.
Summary
The
release-pleasestep authenticated with:Neither secret works.
RELEASE_PLEASE_TOKENwas never created in this repository, andPERSONAL_ACCESS_TOKENwas last rotated on 2021-05-29 and has since been revoked. Every run of theReleaseworkflow has failed at this step with:The workflow has never succeeded once, so no release PR, tag, or GitHub Release has ever been produced, and the
BREAKING CHANGEin869c6a46is still unpublished.Change
.github/workflows/release.yml— authenticate therelease-pleasestep withsecrets.GITHUB_TOKEN. It is always valid, and the job already declares thecontents: writeandpull-requests: writescopes that step needs.Tradeoff: the release PR needs a manual approval
GitHub does fire
pull_requestworkflows for a release PR opened withGITHUB_TOKEN, but their runs stop at "require approval" instead of executing: a user with write access has to approve them on the pull request page. The release PR therefore still reportsPython package,Import TestandVersion Consistency; it is not CI-less. What it lacks is automation, andmainhas no branch protection that would block a merge before those runs are approved.The maintainer step is: when the
chore: release vX.Y.ZPR opens, approve its pending runs and confirm they are green before merging it.Making those runs start automatically needs a PAT or a GitHub App token. Neither is available here —
RELEASE_PLEASE_TOKENwas never created andPERSONAL_ACCESS_TOKENis revoked — and minting or rotating one is the repository owner's decision, not something this workflow can do.