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 }}