Skip to content

ci(release): switch pypi publish to trusted publishing (oidc)#7

Merged
himewel merged 1 commit into
mainfrom
ci/add-workflows
May 16, 2026
Merged

ci(release): switch pypi publish to trusted publishing (oidc)#7
himewel merged 1 commit into
mainfrom
ci/add-workflows

Conversation

@himewel
Copy link
Copy Markdown
Owner

@himewel himewel commented May 16, 2026

Summary

  • Add id-token: write permission to the publish-pypi job so GitHub Actions
    can mint an OIDC token
  • Remove password: ${{ secrets.PYPI_TOKEN }}pypa/gh-action-pypi-publish
    uses OIDC automatically when no password is supplied
  • The PyPI project has already been configured as a trusted publisher,
    so no secrets are required

Test plan

  • Merge and push a v* tag to verify the release workflow publishes
    to PyPI without a token

Replace token-based auth with OIDC trusted publishing.
Add id-token: write permission and remove the PYPI_TOKEN secret usage.

Co-authored-by: Cursor <[email protected]>
@himewel himewel merged commit 87d275e into main May 16, 2026
3 checks passed
@himewel himewel deleted the ci/add-workflows branch May 16, 2026 21:56
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