Skip to content

Commit 57a632f

Browse files
author
jayeshmepani
committed
fix: use OIDC trusted publisher for pypi instead of token
1 parent 0811049 commit 57a632f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
build-and-publish:
1010
name: Build and publish to PyPI
1111
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write # IMPORTANT: mandatory for trusted publishing
14+
contents: read # This is required for actions/checkout
1215

1316
steps:
1417
- uses: actions/checkout@v4
@@ -26,5 +29,3 @@ jobs:
2629

2730
- name: Publish package to PyPI
2831
uses: pypa/gh-action-pypi-publish@release/v1
29-
with:
30-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)