From 488d08fb7bfd4a16050d616c88f5a0b178ad845e Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 21 Mar 2026 15:06:26 +0000 Subject: [PATCH 1/2] Initial plan From 4bc19c6d1bf37858a4a67483a33341e0d4cdb329 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 21 Mar 2026 15:09:09 +0000 Subject: [PATCH 2/2] Fix PyPI workflow: add id-token permission and fix deprecated inputs Co-authored-by: cokelaer <778821+cokelaer@users.noreply.github.com> Agent-Logs-Url: https://github.com/sequana/versionix/sessions/d8b62541-1664-4c07-bc2e-04445f3eefb5 --- .github/workflows/pypi.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index eb70597..2f706c0 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -9,6 +9,8 @@ jobs: build-n-publish: name: Build and publish to PyPI and TestPyPI runs-on: ubuntu-22.04 + permissions: + id-token: write steps: - uses: actions/checkout@v4 - name: Set up Python 3.8 @@ -29,13 +31,11 @@ jobs: if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ password: ${{ secrets.TEST_PYPI_API_TOKEN }} - repository_url: https://test.pypi.org/legacy/ + repository-url: https://test.pypi.org/legacy/ - name: Publish distribution to PyPI if: startsWith(github.ref, 'refs/tags') uses: pypa/gh-action-pypi-publish@release/v1 with: - user: __token__ password: ${{ secrets.PYPI_API_TOKEN }}