Skip to content

Commit 4ed1988

Browse files
davidsmfreireclaude
andcommitted
ci: switch PyPI publish to Trusted Publishing (OIDC)
Drop the static MATURIN_PYPI_TOKEN env on the Publish to PyPI step so maturin-action uses the workflow's OIDC token instead. The release job already has `id-token: write`, which is the only requirement on our end. PyPI must have a Trusted Publisher (or pending publisher, for the first release) registered for this repo + workflow filename under https://pypi.org/manage/account/publishing/. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 9b099e7 commit 4ed1988

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,6 @@ jobs:
183183
- name: Publish to PyPI
184184
if: ${{ startsWith(github.ref, 'refs/tags/') }}
185185
uses: PyO3/maturin-action@v1
186-
env:
187-
MATURIN_PYPI_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
188186
with:
189187
command: upload
190188
args: --non-interactive --skip-existing wheels-*/*

0 commit comments

Comments
 (0)