Skip to content

Conversation

@kesmit13
Copy link
Collaborator

Replace twine-based PyPI publishing with OIDC-based trusted publishing using the pypa/gh-action-pypi-publish GitHub Action.

Changes:

  • Add permissions block with id-token: write for OIDC
  • Add environment block referencing the 'publish' environment
  • Remove twine installation step
  • Replace twine upload with gh-action-pypi-publish action

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the release workflow to publish distributions to PyPI via OIDC trusted publishing instead of using a stored PyPI API token (twine).

Changes:

  • Adds id-token: write permissions to enable OIDC trusted publishing.
  • Adds a publish environment configuration for the publishing job.
  • Replaces twine-based upload (and twine install) with pypa/gh-action-pypi-publish.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Replace twine-based PyPI publishing with OIDC-based trusted publishing
using the pypa/gh-action-pypi-publish GitHub Action.

Changes:
- Add permissions block with id-token: write for OIDC
- Add environment block referencing the 'publish' environment
- Remove twine installation step
- Replace twine upload with gh-action-pypi-publish action

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@kesmit13 kesmit13 merged commit 20f7e40 into main Jan 27, 2026
16 of 17 checks passed
@kesmit13 kesmit13 deleted the trusted-publishing branch January 27, 2026 19:38
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