From 36bbbcffa6f9513b917b5bff2587446934a1d838 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Agust=C3=ADn=20Borgna?= <121866228+aborgna-q@users.noreply.github.com> Date: Tue, 12 Nov 2024 17:31:42 +0000 Subject: [PATCH] ci: Fix trusted pypi publish job (#1648) This is a required setting for [gh-action-pypi-publish](https://github.com/pypa/gh-action-pypi-publish/tree/release/v1/?tab=readme-ov-file#usage) --- .github/workflows/python-wheels.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/python-wheels.yml b/.github/workflows/python-wheels.yml index ec9e1b92e..96044c61b 100644 --- a/.github/workflows/python-wheels.yml +++ b/.github/workflows/python-wheels.yml @@ -9,6 +9,11 @@ name: Build and publish python wheels # this workflow will publish the wheels to pypi. # If the version is already published, pypi just ignores it. + +permissions: + # This permission is required for trusted publishing on pypi + id-token: write + on: workflow_dispatch: push: @@ -74,4 +79,4 @@ jobs: uses: pypa/gh-action-pypi-publish@release/v1 with: verbose: true - skip-existing: true \ No newline at end of file + skip-existing: true