Skip to content

Commit 045a9e1

Browse files
committed
CI: fail setup-hardened-python for Python series without a known fix
Python 3.16.0a1 was tagged before the CPython fix for CVE-2026-115557 merged, so warning on series newer than the fixed-release table let a known-vulnerable interpreter through. Treat any unlisted series as an error; a new series is accepted once its fixed release is added.
1 parent a0e7a07 commit 045a9e1

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

‎.github/actions/setup-hardened-python/action.yml‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,9 @@ description: >-
1919
inputs:
2020
python-version:
2121
description: >-
22-
uv Python request, e.g. "3.12", "3.14t" (free-threaded), or "3.16"
23-
(resolves to a prerelease while no final release exists). The newest
24-
patch known to the pinned uv is installed.
22+
uv Python request, e.g. "3.12" or "3.14t" (free-threaded). The newest
23+
patch known to the pinned uv is installed. Only series with a fixed
24+
release listed in the interpreter check (3.11-3.15) are accepted.
2525
required: true
2626
venv:
2727
description: Directory for the venv. Defaults to a new directory under RUNNER_TEMP.
@@ -112,10 +112,9 @@ runs:
112112
print(f"::error::Python {full} is older than {floor}, the first {name} release whose ssl module rejects the compromised eMudhra CA keys (CVE-2026-115557).")
113113
sys.exit(1)
114114
print(f"Python {full}: ssl module carries the fix (first fixed: {floor}).")
115-
elif series > max(FIXED):
116-
print(f"::warning::Python {full}: no fixed {name} release is known yet.")
117115
else:
118-
print(f"::error::Python {name} has no release whose ssl module rejects the compromised eMudhra CA keys (CVE-2026-115557).")
116+
# Fail closed: a series is only accepted once its fixed release is listed.
117+
print(f"::error::Python {full}: no {name} release is known to reject the compromised eMudhra CA keys (CVE-2026-115557).")
119118
sys.exit(1)
120119
121120
- name: Update pip

0 commit comments

Comments
 (0)