From 6d094a86e087933028bf87380101494f49061de3 Mon Sep 17 00:00:00 2001 From: Guus Beckett Date: Tue, 3 Nov 2026 21:31:58 +0100 Subject: [PATCH 1/2] Security updates: declare requests>=2.32.4, fix publish workflow - add install_requires requests>=2.32.4 (CVE-2024-35195, CVE-2024-47081) - python_requires >=3.8 (required by requests 2.32.4) - upload/download-artifact v3 -> v4 (v3 is retired, publish would fail) - version 2.0.5 Co-Authored-By: Claude Opus 5.5 --- .github/workflows/python-publish.yml | 4 ++-- .github/workflows/python-publishtest.yml | 4 ++-- CHANGES.md | 6 ++++++ cm_text/version.py | 2 +- setup.py | 5 ++++- 5 files changed, 15 insertions(+), 6 deletions(-) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 255410e..9d82ecf 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -22,7 +22,7 @@ jobs: - name: Build a binary wheel and a source tarball run: python3 -m build - name: Store the distribution packages - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: python-package-distributions path: dist/ @@ -38,7 +38,7 @@ jobs: contents: read # Add the contents permission for accessing repository contents steps: - name: Download all the dists - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: python-package-distributions path: dist/ diff --git a/.github/workflows/python-publishtest.yml b/.github/workflows/python-publishtest.yml index 5a82fad..89ad99c 100644 --- a/.github/workflows/python-publishtest.yml +++ b/.github/workflows/python-publishtest.yml @@ -24,7 +24,7 @@ jobs: - name: Build a binary wheel and a source tarball run: python3 -m build - name: Store the distribution packages - uses: actions/upload-artifact@v3 + uses: actions/upload-artifact@v4 with: name: python-package-distributions path: dist/ @@ -40,7 +40,7 @@ jobs: contents: read # Add the contents permission for accessing repository contents steps: - name: Download all the dists - uses: actions/download-artifact@v3 + uses: actions/download-artifact@v4 with: name: python-package-distributions path: dist/ diff --git a/CHANGES.md b/CHANGES.md index 7f7bf1d..a8d6f84 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,6 +1,12 @@ # Changelog All notable changes to this project will be documented in this file. +## [2.0.5] - 2026-11-03 +### Security +- Declare `requests>=2.32.4` as a dependency (fixes CVE-2024-35195, CVE-2024-47081 in older versions); minimum Python is now 3.8 +### Fixed +- Publish workflows use `actions/upload-artifact`/`download-artifact` v4 (v3 is retired) + ## [2.0.4] - 2024-06-12 (Joris Pennings) ### Changed - Global gateway url diff --git a/cm_text/version.py b/cm_text/version.py index f593cd5..4c354e0 100644 --- a/cm_text/version.py +++ b/cm_text/version.py @@ -1 +1 @@ -__version__ = '2.0.4' +__version__ = '2.0.5' diff --git a/setup.py b/setup.py index 85488a3..ee0dc1f 100644 --- a/setup.py +++ b/setup.py @@ -22,5 +22,8 @@ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", ], - python_requires='>=3.6', + python_requires='>=3.8', + install_requires=[ + 'requests>=2.32.4', + ], ) From beb757221a05b17fe09b0c10ccd324602cc4ac70 Mon Sep 17 00:00:00 2001 From: Guus Beckett Date: Tue, 3 Nov 2026 21:37:54 +0100 Subject: [PATCH 2/2] Publish workflows: wait for build job before downloading dists The publish jobs had no 'needs: build', so they ran in parallel with the build and failed with 'Artifact not found'. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/python-publish.yml | 1 + .github/workflows/python-publishtest.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index 9d82ecf..4502c95 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -28,6 +28,7 @@ jobs: path: dist/ pypi-publish: + needs: build name: Publish Python distribution to PyPI runs-on: ubuntu-latest environment: diff --git a/.github/workflows/python-publishtest.yml b/.github/workflows/python-publishtest.yml index 89ad99c..a00d41a 100644 --- a/.github/workflows/python-publishtest.yml +++ b/.github/workflows/python-publishtest.yml @@ -30,6 +30,7 @@ jobs: path: dist/ testpypi-publish: + needs: build name: Publish Python distribution to testPyPI runs-on: ubuntu-latest environment: