Repository navigation
fix(snyk): scan requirements.txt with Python 3.11 - #45
Merged
Merged
Conversation
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 <noreply@anthropic.com>
Contributor
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
typettitt
approved these changes
Sep 29, 2026
jonbos
approved these changes
Sep 29, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Snyk's scan of
mainreports 0 C / 4 H / 10 M, but against versions this repo doesn't use:requirements.txtpinsurllib3@2.0.7(4 H / 2 M)urllib3>=2.7.0(#43)requests@2.31.0(3 M)requests==2.33.0zipp@3.15.0(1 M)zipp==3.19.2Those are the last releases that support Python 3.7, and Snyk's SCM import tests pip projects with Python 3.7 by default (docs). It can't install our pins on 3.7, so it reports older versions we don't use. That's why the urllib3 findings stayed "open" after #43.
Change
.snyk(next torequirements.txt, where Snyk looks for it):language-settings: python: '3.11', the top of the CI matrix.requirements.txtalready needs 3.10+ (urllib3 2.7).This only changes how Snyk resolves
requirements.txt. It doesn't changerequires-pythonor the published package (dropping 3.7–3.9 support is a separate question).Verification
After merge, re-test the Snyk project
DelineaXPM/python-dsv-sdk(main):requirements.txt(devops-secrets-vault); expect urllib3/requests/zipp to resolve to the pinned versions and the 4 H to clear.🤖 Generated with Claude Code