Skip to content

Commit 64a6bc0

Browse files
committed
ci: publish with a pip that excludes the compromised eMudhra/emSign CA
The publish job ran on Python 3.10, whose bundled pip still trusts the compromised eMudhra/emSign root. Build and upload on Python 3.13, whose latest patch bundles pip 26.2.2+, and fail the job if pip is older. Signed-off-by: mday-io <mdaytn@gmail.com>
1 parent ed30b96 commit 64a6bc0

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

‎.github/workflows/release.yaml‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,13 @@ jobs:
4040
- name: Set up Python
4141
uses: actions/setup-python@v6
4242
with:
43-
python-version: '3.10'
43+
# 3.13.17+ bundles pip 26.2.2+, which no longer trusts the compromised eMudhra/emSign root CA.
44+
python-version: '3.13'
4445
- name: Install uv
4546
uses: astral-sh/setup-uv@v7
47+
- name: Check pip includes the eMudhra/emSign CA removal
48+
run: |
49+
python -c "import sys, pip; v = tuple(int(p) for p in pip.__version__.split('.')[:3]); sys.exit(0 if v >= (26, 2, 2) else f'pip {pip.__version__} predates the eMudhra/emSign CA removal; need >= 26.2.2')"
4650
- name: Install build dependencies
4751
run: pip install build twine setuptools_scm
4852
- name: Publish Python package

0 commit comments

Comments
 (0)