diff --git a/.github/workflows/release-python.yml b/.github/workflows/release-python.yml index e39bb7a0d..98a5f3642 100644 --- a/.github/workflows/release-python.yml +++ b/.github/workflows/release-python.yml @@ -177,12 +177,11 @@ jobs: # can be published. needs: [ macos, linux, windows, sdist ] if: always() && needs.sdist.result == 'success' + permissions: + id-token: write steps: - uses: actions/download-artifact@v3 - name: Publish to PyPI - env: - MATURIN_USERNAME: ${{ secrets.PYPI_USERNAME }} - MATURIN_PASSWORD: ${{ secrets.PYPI_PASSWORD }} uses: messense/maturin-action@v1 with: command: upload