Skip to content

Commit 5f46f6d

Browse files
authored
ci: Switch to Trusted Publishing (#163)
Stop using long-lived secrets for PyPI publishing. Signed-off-by: Matt Wozniski <godlygeek@gmail.com>
1 parent 24a3e1c commit 5f46f6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/build_dist.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ jobs:
3232
needs: [build_dist]
3333
runs-on: ubuntu-latest
3434
if: github.event_name == 'release' && github.event.action == 'published'
35+
permissions:
36+
id-token: write # Required to retrieve a Trusted Publishing token
3537
steps:
3638
- uses: actions/download-artifact@v8
3739
with:
3840
name: artifact
3941
path: dist
4042

4143
- uses: pypa/gh-action-pypi-publish@v1.14.0
42-
with:
43-
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)