Skip to content

Commit debc9e8

Browse files
godlygeeksarahmonod
authored andcommitted
ci: Switch to Trusted Publishing
Stop using long-lived secrets for PyPI publishing. Signed-off-by: Matt Wozniski <godlygeek@gmail.com>
1 parent 15bc526 commit debc9e8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.github/workflows/build_wheels.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,6 +413,8 @@ jobs:
413413
needs: [test_wheels]
414414
runs-on: ubuntu-latest
415415
if: github.event_name == 'release' && github.event.action == 'published'
416+
permissions:
417+
id-token: write # Required to retrieve a Trusted Publishing token
416418
steps:
417419
- uses: actions/download-artifact@v8
418420
with:
@@ -426,4 +428,3 @@ jobs:
426428
- uses: pypa/gh-action-pypi-publish@release/v1
427429
with:
428430
skip_existing: true
429-
password: ${{ secrets.PYPI_PASSWORD }}

0 commit comments

Comments
 (0)