Skip to content

ci: publish to PyPI with trusted publishing and attestations - #34

Merged
rkoopmans merged 1 commit into
tinify:masterfrom
rkoopmans:feature/tiny-878-automate-python-releases-with-security
Nov 17, 2026
Merged

rkoopmans merged 1 commit into
tinify:masterfrom
rkoopmans:feature/tiny-878-automate-python-releases-with-security

Conversation

@rkoopmans

Copy link
Copy Markdown
Contributor

Release the package the same way as the npm package: authenticate to PyPI through Trusted Publishing (OIDC) from the release environment instead of a long-lived API token, and upload PEP 740 attestations so PyPI shows the release provenance.

Building and publishing are split into separate jobs so the build tooling never runs with the id-token permission.

Refs TINY-878

Release the package the same way as the npm package: authenticate to
PyPI through Trusted Publishing (OIDC) from the `release` environment
instead of a long-lived API token, and upload PEP 740 attestations so
PyPI shows the release provenance.

Building and publishing are split into separate jobs so the build
tooling never runs with the id-token permission.

Refs TINY-878
@rkoopmans
rkoopmans merged commit 7a203e1 into tinify:master Nov 17, 2026
31 of 33 checks passed
@rkoopmans
rkoopmans deleted the feature/tiny-878-automate-python-releases-with-security branch November 17, 2026 09:44
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.

2 participants