From e3a6425ebd02e858613e8dea921c6c6c4ae0cb98 Mon Sep 17 00:00:00 2001 From: PierreS-alpha <49942080+PierreS-alpha@users.noreply.github.com> Date: Sat, 28 Dec 2024 20:50:14 +0100 Subject: [PATCH] Update python-publish.yml --- .github/workflows/python-publish.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index eb4e883..b197382 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -52,7 +52,7 @@ jobs: - release-build permissions: # IMPORTANT: this permission is mandatory for trusted publishing - id-token: ${{ secrets.PYPITOKENB }} + id-token: write # Dedicated environments with protections for publishing are strongly recommended. # For more information, see: https://docs.github.com/en/actions/deployment/targeting-different-environments/using-environments-for-deployment#deployment-protection-rules @@ -76,3 +76,5 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: packages-dir: dist/ + env: + PYPI_TOKEN: ${{ secrets.PYPITOKENB }}