Skip to content

chore: migrate release and staging workflows to PyPI Trusted Publishing#48

Merged
placerda merged 1 commit into
mainfrom
copilot/update-release-and-staging-workflows
Mar 25, 2026
Merged

chore: migrate release and staging workflows to PyPI Trusted Publishing#48
placerda merged 1 commit into
mainfrom
copilot/update-release-and-staging-workflows

Conversation

Copy link
Copy Markdown

Copilot AI commented Mar 25, 2026

Migrate from API token authentication to OIDC-based Trusted Publishing for PyPI/TestPyPI uploads.

Changes

  • release.yml

    • Add id-token: write permission to publish-testpypi job
    • Remove password parameter from both TestPyPI and PyPI publish steps
    • Update setup docs to reference Trusted Publishing configuration
  • staging.yml

    • Add id-token: write permission to publish-testpypi job
    • Remove password parameter from TestPyPI publish step
    • Update setup docs to reference Trusted Publishing configuration

Post-merge setup

Configure publishers on PyPI/TestPyPI project settings:

Registry Workflow Environment
test.pypi.org release.yml staging
pypi.org release.yml release
test.pypi.org staging.yml staging

The TEST_PYPI_TOKEN and PYPI_TOKEN secrets can be removed after successful validation.

@placerda placerda marked this pull request as ready for review March 25, 2026 02:27
@placerda placerda merged commit b92262e into main Mar 25, 2026
1 check 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.

2 participants