From be2e1716a84db274363f8c3b96de40605a560402 Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Sat, 4 Nov 2023 22:42:18 -0400 Subject: [PATCH] CI: Switch to trusted publishing --- .github/workflows/tox.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index bcba93a..841d395 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -110,12 +110,11 @@ jobs: runs-on: ubuntu-latest needs: [test, test-sdist] if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') + permissions: + id-token: write steps: - uses: actions/download-artifact@v3 with: name: dist path: dist/ - uses: pypa/gh-action-pypi-publish@release/v1 - with: - user: __token__ - password: ${{ secrets.PYPI_API_TOKEN }}