Skip to content

Commit b347ada

Browse files
splaskyclaude
andcommitted
Switch PyPI publish to API token authentication
Replace OIDC trusted publishing with API token auth to avoid trusted publisher configuration issues. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 647994d commit b347ada

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/publish-pypi.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ jobs:
3333
publish:
3434
needs: build
3535
runs-on: ubuntu-latest
36-
environment: pypi
37-
permissions:
38-
id-token: write
3936

4037
steps:
4138
- name: Download build artifacts
@@ -46,3 +43,5 @@ jobs:
4643

4744
- name: Publish to PyPI
4845
uses: pypa/gh-action-pypi-publish@release/v1
46+
with:
47+
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)