From 9ba200eac1e65e72cddf723e57a976260c1be565 Mon Sep 17 00:00:00 2001 From: David Lechner Date: Sat, 1 Jun 2024 14:46:57 -0500 Subject: [PATCH] github: update for trusted publisher --- .github/workflows/publish.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4af62a7..d6896dc 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -59,6 +59,9 @@ jobs: upload_pypi: needs: [build_wheels, build_sdist] runs-on: ubuntu-latest + permissions: + # IMPORTANT: this permission is mandatory for trusted publishing + id-token: write # upload to PyPI on every tag if: github.event_name == 'push' && github.ref_type == 'tag' steps: @@ -69,6 +72,3 @@ jobs: path: dist - uses: pypa/gh-action-pypi-publish@v1.8.14 - with: - user: __token__ - password: ${{ secrets.PYPI_TOKEN4 }}