From 18e92145e9cddbabdf51c98f54202aa37fd5d4c8 Mon Sep 17 00:00:00 2001 From: William Woodruff Date: Sun, 14 May 2023 17:57:04 -0400 Subject: Use trusted publishing for PyPI --- .github/workflows/publish.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 25fb2c3d..0e286aa3 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -67,6 +67,7 @@ jobs: needs: ["build", "provenance"] permissions: contents: write + id-token: write # Needed for trusted publishing to PyPI. runs-on: "ubuntu-latest" steps: @@ -83,7 +84,4 @@ jobs: gh release upload ${{ github.ref_name }} dist/* --repo ${{ github.repository }} - name: "Publish dists to PyPI" - uses: "pypa/gh-action-pypi-publish@37f50c210e3d2f9450da2cd423303d6a14a6e29f" - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN }} + uses: "pypa/gh-action-pypi-publish@a56da0b891b3dc519c7ee3284aff1fad93cc8598" -- cgit v1.2.1