Repository navigation
ci: publish to PyPI with trusted publishing (CB-0) - #229
Draft
spicysouvlaki wants to merge 1 commit into
Draft
spicysouvlaki wants to merge 1 commit into
spicysouvlaki wants to merge 1 commit into
Conversation
PYPI_TOKEN was a long-lived repo secret (2025-09-05) readable by any workflow on any branch, so any of the repo's writers could publish to PyPI without the `release` environment approval. PyPI releases also carried no provenance (integrity API: "No provenance available" for 1.26.0). Publish now builds with uv and uploads through pypa/gh-action-pypi-publish, which uses the job's OIDC token and uploads PEP 740 attestations. The trusted publisher on PyPI must be pinned to workflow publish-pypi.yml and environment `release`, so only an approved run from main or a v* tag can publish. Drops bin/publish-pypi and the PYPI_TOKEN release-doctor check. Delete the PYPI_TOKEN secret and revoke the token on PyPI once a release succeeds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
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.
Publish via PyPI trusted publishing (OIDC) with attestations; drops the long-lived PYPI_TOKEN path. Before merge: a PyPI owner adds the trusted publisher (browserbase/sdk-python, publish-pypi.yml, env release). After the first good release: delete PYPI_TOKEN and revoke it on PyPI.
🤖 Generated with Claude Code