Skip to content

docs(releasing): describe trusted publishing, which publish.yml uses - #51

Merged
mahdi-shafiei merged 1 commit into
mainfrom
docs/releasing-trusted-publishing
Nov 8, 2026
Merged

mahdi-shafiei merged 1 commit into
mainfrom
docs/releasing-trusted-publishing

Conversation

@mahdi-shafiei

Copy link
Copy Markdown
Collaborator

Summary

RELEASING.md said publishing authenticates with the PYPI_API_TOKEN and TEST_PYPI_API_TOKEN secrets and described trusted publishing as a later migration. publish.yml has used trusted publishing since cf470db.

 ## PyPI Authentication
-The publish workflow uses API token authentication. Two repo secrets must be set ...
-To migrate to OIDC trusted publishing later, register the project ...
+The publish workflow uses PyPI trusted publishing (OIDC) ... PyPI must trust, for the project `diffbio`:
+  Owner avitai, Repository DiffBio, Workflow publish.yml, Environment pypi (and testpypi)
+If PyPI rejects the upload with `invalid-publisher`, verify that registration ...

The wording follows opifex's RELEASING.md.

Evidence

  • publish.yml: publish-testpypi and publish-pypi each set id-token: write (lines 100, 145) and call pypa/gh-action-pypi-publish with no password; no secrets. reference in the workflow.
  • After the change, git grep -E 'API_TOKEN|password' -- RELEASING.md returns nothing; pre-commit passes.

Merge Danger

Door: two-way

Blast Radius: release docs

The repository still holds a PYPI_API_TOKEN secret that no workflow reads; removing it is a settings change, not part of this PR.

RELEASING.md said the publish workflow authenticates with the
PYPI_API_TOKEN and TEST_PYPI_API_TOKEN secrets and called trusted
publishing a later migration. publish.yml has used trusted publishing
since cf470db: each publish job requests an id-token and no step passes
a password. The section now states the identity PyPI must trust and what
to check on an invalid-publisher error, in the form opifex's
RELEASING.md uses.
@mahdi-shafiei
mahdi-shafiei marked this pull request as ready for review November 8, 2026 22:40
@mahdi-shafiei
mahdi-shafiei merged commit 79ee41a into main Nov 8, 2026
13 checks passed
@mahdi-shafiei
mahdi-shafiei deleted the docs/releasing-trusted-publishing branch November 8, 2026 22:40
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