From 6205039a88023d9f7dd14a717f2e8d7d080b974a Mon Sep 17 00:00:00 2001 From: Gabriele Santomaggio Date: Wed, 4 Dec 2024 10:54:17 +0100 Subject: [PATCH] update pip release with token Signed-off-by: Gabriele Santomaggio --- .github/workflows/publish-prerelease.yaml | 2 ++ .github/workflows/publish-release.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/publish-prerelease.yaml b/.github/workflows/publish-prerelease.yaml index 28fd0bd..8fc8dfb 100644 --- a/.github/workflows/publish-prerelease.yaml +++ b/.github/workflows/publish-prerelease.yaml @@ -7,6 +7,8 @@ on: jobs: call-publish-pypi: + permissions: + id-token: write uses: ./.github/workflows/publish-pypi.yaml with: pypi_repository_url: https://test.pypi.org/legacy/ diff --git a/.github/workflows/publish-release.yaml b/.github/workflows/publish-release.yaml index db565f9..04c6bc0 100644 --- a/.github/workflows/publish-release.yaml +++ b/.github/workflows/publish-release.yaml @@ -7,6 +7,8 @@ on: jobs: call-publish-pypi: + permissions: + id-token: write uses: ./.github/workflows/publish-pypi.yaml with: pypi_repository_url: https://upload.pypi.org/legacy/