Skip to content

fix(ci): release-please falls back to GITHUB_TOKEN (works without the PAT)#80

Merged
pofallon merged 1 commit into
mainfrom
fix/release-please-token-fallback
Jul 25, 2026
Merged

fix(ci): release-please falls back to GITHUB_TOKEN (works without the PAT)#80
pofallon merged 1 commit into
mainfrom
fix/release-please-token-fallback

Conversation

@pofallon

Copy link
Copy Markdown
Contributor

The first release-please runs on main failed with Input required and not supplied: token because RELEASE_PLEASE_TOKEN isn't set, so it couldn't open its release PR at all.

Fall back to GITHUB_TOKEN (secrets.RELEASE_PLEASE_TOKEN || secrets.GITHUB_TOKEN). The workflow already grants contents: write + pull-requests: write, so with the fallback release-please opens/maintains the release PR out of the box. The PAT now only governs whether the created tag auto-triggers release.yml (PyPI + Docker) — the previously-documented caveat (a GITHUB_TOKEN-created tag doesn't fire on: push: tags).

actionlint clean.

🤖 Generated with Claude Code

…out the PAT

The mandatory RELEASE_PLEASE_TOKEN made the workflow fail
("Input required and not supplied: token") when the secret is unset, so
release-please couldn't even open its release PR. Fall back to GITHUB_TOKEN:
the release PR + tag are created out of the box; the PAT now only governs
whether the created tag auto-triggers release.yml (PyPI + Docker) — the
already-documented caveat.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HAPB5GA4NVUgKFsVFVJDxN
@pofallon
pofallon merged commit 212aa6d into main Jul 25, 2026
10 of 11 checks passed
@pofallon
pofallon deleted the fix/release-please-token-fallback branch July 25, 2026 00:26
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