From 2b26fc7003a655660cfd005200908a6a46520e9d Mon Sep 17 00:00:00 2001 From: Ruben Di Battista Date: Sat, 25 Jul 2026 17:56:37 +0200 Subject: [PATCH] MNT: Leverage trusted publishing --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76f4b441a..2da5c3b34 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -172,13 +172,13 @@ jobs: - build_sdist if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v') runs-on: ubuntu-latest + environment: pypi + permissions: + id-token: write steps: - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 with: path: dist merge-multiple: true - - uses: pypa/gh-action-pypi-publish@cef221092ed1bacb1cc03d23a2d87d1d172e277b # v1.14.0 # zizmor: ignore[use-trusted-publishing] - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN}} + - uses: pypa/gh-action-pypi-publish@ba38be9e461d3875417946c167d0b5f3d385a247 # v1.14.1