Skip to content

ci: switch to OIDC trusted publishing for PyPI and TestPyPI#13

Open
patrickmelix wants to merge 1 commit intomainfrom
feat/trusted-publisher
Open

ci: switch to OIDC trusted publishing for PyPI and TestPyPI#13
patrickmelix wants to merge 1 commit intomainfrom
feat/trusted-publisher

Conversation

@patrickmelix
Copy link
Copy Markdown
Member

Summary

  • Removes PYPI_API_TOKEN and TEST_PYPI_API_TOKEN secrets from both publish workflows — pypa/gh-action-pypi-publish authenticates via OIDC automatically when no password: is supplied
  • Removes the broken waitfortest gate from pypi-publish.yml
  • Documents the one-time trusted publisher registration steps in CLAUDE.md

Before merging

Register trusted publishers on PyPI/TestPyPI (one-time setup):

PyPI TestPyPI
Workflow release.yml pypi-publish.yml
Environment pypi testpypi

Owner: Tonner-Zech-Group, Repository: VASP-tools

Also confirm the pypi and testpypi GitHub Environments exist under Settings → Environments.

Test plan

  • Trusted publishers registered on PyPI and TestPyPI
  • GitHub Environments pypi and testpypi exist
  • CI passes on this PR
  • After merge: verify release pipeline completes, or trigger pypi-publish.yml manually against TestPyPI first

🤖 Generated with Claude Code

Remove PYPI_API_TOKEN and TEST_PYPI_API_TOKEN secrets from both
publish workflows. pypa/gh-action-pypi-publish uses OIDC automatically
when no password is supplied, authenticated via the id-token: write
permission and the GitHub environment (pypi / testpypi).

Also removes the broken waitfortest gate from pypi-publish.yml (same
issue as release.yml: workflow_dispatch has no tag/branch CI check to
wait on).

CLAUDE.md documents the one-time trusted publisher registration on
PyPI and TestPyPI, including the exact field values needed.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@patrickmelix patrickmelix added enhancement New feature or request AI AI generated labels Mar 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AI AI generated enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant