Repository navigation
ci: Publish to PyPI without a stored API token - #370
Conversation
Authenticate releases as a PyPI trusted publisher (OIDC) instead of the long-lived PYPI_API_TOKEN secret. The workflow is renamed to publish.yml, the filename PyPI trusts, and the build runs in a job that holds no publishing rights. Co-Authored-By: Claude Fable 5.2 <[email protected]>
|
Minimum allowed coverage is Generated by 🐒 cobertura-action against 6b99f43 |
There was a problem hiding this comment.
All reported issues were addressed across 2 files
Reply with feedback, questions, or to request a fix.
Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Auto-approval blocked by 1 unresolved issue from previous reviews.
Turn on auto-fix | Re-trigger cubic
There was a problem hiding this comment.
0 issues found across 1 file (changes from recent commits).
Confidence score: 5/5
- Automated review surfaced no issues in the provided summaries.
- No files require special attention.
Requires human review: Revamps the PyPI release workflow from a stored API token to OIDC trusted publishing, splitting build and publish and tightening tag/permission scopes. The credential and deployment autentication change needs human verification of PyPI trust configuration and the token-revocation follow-up.
Turn on auto-fix | Re-trigger cubic
🤖 I have created a release *beep* *boop* --- ## [11.1.3](v11.1.2...v11.1.3) (2026-12-01) ### CI * Publish to PyPI without a stored API token ([#370](#370)) ([ff96017](ff96017)) ### Dependency Updates * update dependency black to v26.10.1 [security] ([#361](#361)) ([cc63b46](cc63b46)) * update dependency datamodel-code-generator to v0.81.0 [security] ([#351](#351)) ([30b3d3d](30b3d3d)) ### Other * remove release-please workflow ([#368](#368)) ([3e7084c](3e7084c)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Closes ENG-1112.
Releases reach PyPI using a long-lived API token stored as a repository secret: whoever obtains it can publish
flagsmith-flag-engineat will until someone revokes it by hand. PyPI now trusts this repository's publish workflow directly, so each release authenticates with a short-lived credential issued for that run, and no secret is stored.Changes
PYPI_API_TOKENsecret.The workflow file is renamed to
publish.ymlbecause that is the filename PyPI's trusted publisher is bound to. It only runs on a release tag, so it stays unexercised until the next release.Review effort: 2/5
🤖 Generated with Claude Code