Skip to content

fix: use API token auth for test.pypi.org publish instead of failing OIDC - #59

Draft
hanyangii with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-publish-dev-package
Draft

fix: use API token auth for test.pypi.org publish instead of failing OIDC#59
hanyangii with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-publish-dev-package

Conversation

Copilot AI commented Jul 24, 2026

Copy link
Copy Markdown
Contributor

The Publish dev package to test.pypi.org job was failing because test.pypi.org has no trusted publisher configured for mother-ml matching the GitHub Actions OIDC claims (sub: repo:Bayer-Group/MotherML:environment:test-pypi).

Change

  • Added password: ${{ secrets.TEST_PYPI_API_TOKEN }} to the pypa/gh-action-pypi-publish step, bypassing OIDC entirely in favor of API token auth.
- name: Upload package to Test PyPI
  uses: pypa/gh-action-pypi-publish@release/v1
  with:
    repository-url: https://test.pypi.org/legacy/
    skip-existing: true
    packages-dir: dist/
    password: ${{ secrets.TEST_PYPI_API_TOKEN }}

Required action

Add a test.pypi.org API token scoped to mother-ml as a GitHub secret named TEST_PYPI_API_TOKEN in the test-pypi environment (repository Settings → Environments).

Copilot AI changed the title [WIP] Fix failing GitHub Actions job for publishing dev package fix: use API token auth for test.pypi.org publish instead of failing OIDC Jul 24, 2026
Copilot AI requested a review from hanyangii July 24, 2026 13:08
@thomasATbayer thomasATbayer linked an issue Aug 21, 2026 that may be closed by this pull request
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.

test-pypi deployment fails

2 participants