From e57737790a5ac9796a5b77aaeacb59af342a8eec Mon Sep 17 00:00:00 2001 From: Bill Hamilton Date: Tue, 29 Sep 2026 11:55:41 -0700 Subject: [PATCH] fix(snyk): scan requirements.txt with Python 3.11 Snyk's SCM import tests pip projects with Python 3.7 by default. Under 3.7 it cannot install our pins (urllib3>=2.7.0 needs Python >= 3.10), so it reports the last 3.7-compatible releases instead: Snyk's main scan shows urllib3 2.0.7 (4 H / 2 M), requests 2.31.0 and zipp 3.15.0 while requirements.txt pins urllib3>=2.7.0, requests==2.33.0, zipp==3.19.2. Adds .snyk with language-settings python '3.11' (top of the CI matrix). Affects only how Snyk resolves requirements.txt, not requires-python. Co-Authored-By: Claude Opus 5.5 --- .../\360\237\224\222 Security-20260929-115541.yaml" | 3 +++ .snyk | 10 ++++++++++ 2 files changed, 13 insertions(+) create mode 100644 ".changes/unreleased/\360\237\224\222 Security-20260929-115541.yaml" create mode 100644 .snyk diff --git "a/.changes/unreleased/\360\237\224\222 Security-20260929-115541.yaml" "b/.changes/unreleased/\360\237\224\222 Security-20260929-115541.yaml" new file mode 100644 index 0000000..eefc74f --- /dev/null +++ "b/.changes/unreleased/\360\237\224\222 Security-20260929-115541.yaml" @@ -0,0 +1,3 @@ +kind: 🔒 Security +body: Tell Snyk to scan requirements.txt with Python 3.11 (.snyk). Its default of Python 3.7 could not install the pinned versions and reported stale ones (urllib3 2.0.7, requests 2.31.0), so fixed findings kept showing as open. +time: 2026-09-29T11:55:41.000000-07:00 diff --git a/.snyk b/.snyk new file mode 100644 index 0000000..a1591e6 --- /dev/null +++ b/.snyk @@ -0,0 +1,10 @@ +# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities. +# Snyk's SCM import tests pip projects with Python 3.7 unless told otherwise. Under 3.7 it cannot +# install the pins in requirements.txt (urllib3 >= 2.7 needs Python >= 3.10) and reports the last +# 3.7-compatible versions instead (urllib3 2.0.7, requests 2.31.0, zipp 3.15.0). 3.11 is the top of +# the CI test matrix. This affects Snyk's scan of requirements.txt only, not requires-python. +version: v1.25.0 +ignore: {} +patch: {} +language-settings: + python: '3.11'