Skip to content

ci: publish PyPI through OIDC - #33

Merged
mstuart merged 1 commit into
mainfrom
fix/pypi-trusted-publishing
Aug 23, 2026
Merged

ci: publish PyPI through OIDC#33
mstuart merged 1 commit into
mainfrom
fix/pypi-trusted-publishing

Conversation

@mstuart

@mstuart mstuart commented Aug 23, 2026

Copy link
Copy Markdown
Owner

Summary

  • replace the long-lived PYPI_TOKEN path with PyPI trusted publishing
  • grant id-token: write only to the publish job
  • preserve the existing wheel and sdist artifacts and idempotent skip-existing behavior
  • pin every external action in python.yml to the exact commit behind its existing ref

PyPI prerequisite

The tare-compress project does not currently exist on PyPI, so configure this pending publisher before the workflow is used:

  • project name: tare-compress
  • provider: GitHub Actions
  • organization/user: mstuart
  • repository: tare
  • workflow filename: python.yml
  • environment: none (leave blank)

A pending publisher does not reserve the project name. Its first successful OIDC publish creates the project and converts the pending publisher into a normal trusted publisher. This PR does not configure PyPI or publish a release.

Verification

  • actionlint 1.7.12
  • immutable action-ref and focused PyPI OIDC invariant checks
  • Python 3.11 integration tests: 11 passed
  • release wheel and sdist builds

@mstuart
mstuart merged commit 3b2a1e2 into main Aug 23, 2026
7 checks passed
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