From b74cf1cff9b132780caacec0e11026a3902c9270 Mon Sep 17 00:00:00 2001 From: Andrej Copar Date: Fri, 13 Dec 2024 11:01:41 +0000 Subject: [PATCH] Use Github OIDC to publish release to PyPI --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9928e2f4e..40f661193 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -81,6 +81,11 @@ jobs: build: runs-on: arc-runner needs: test + + permissions: + id-token: write + contents: read + if: startsWith(github.ref, 'refs/tags') steps: @@ -94,8 +99,6 @@ jobs: - name: Publish distribution to PyPI uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.pypi_password }} - name: Upload coverage to Codecov uses: codecov/codecov-action@v5