Skip to content

Commit 9e53cd4

Browse files
committed
configure workflow to work as trusted published
1 parent c8d8280 commit 9e53cd4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build-and-publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,8 @@ jobs:
5353
needs: [build_wheels, build_sdist]
5454
runs-on: ubuntu-latest
5555
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
56+
permissions:
57+
id-token: write
5658
steps:
5759
- uses: actions/download-artifact@v4
5860
with:
@@ -61,5 +63,3 @@ jobs:
6163
path: dist
6264

6365
- uses: pypa/gh-action-pypi-publish@release/v1
64-
with:
65-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)