Skip to content

fix(snyk): scan requirements.txt with Python 3.11 - #45

Merged
pacificcode merged 1 commit into
mainfrom
fix/snyk-python-version
Sep 30, 2026
Merged

pacificcode merged 1 commit into
mainfrom
fix/snyk-python-version

Conversation

@pacificcode

Copy link
Copy Markdown
Contributor

Snyk's scan of main reports 0 C / 4 H / 10 M, but against versions this repo doesn't use:

Snyk reports requirements.txt pins
urllib3@2.0.7 (4 H / 2 M) urllib3>=2.7.0 (#43)
requests@2.31.0 (3 M) requests==2.33.0
zipp@3.15.0 (1 M) zipp==3.19.2

Those 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 to requirements.txt, where Snyk looks for it): language-settings: python: '3.11', the top of the CI matrix. requirements.txt already needs 3.10+ (urllib3 2.7).
  • changie entry.

This only changes how Snyk resolves requirements.txt. It doesn't change requires-python or 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

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>
@snyk-io

snyk-io Bot commented Sep 29, 2026 •

Copy link
Copy Markdown
Contributor

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ changie entry was found

@pacificcode
pacificcode merged commit eaf3f5f into main Sep 30, 2026
12 checks passed
@pacificcode
pacificcode deleted the fix/snyk-python-version branch September 30, 2026 14:08

This branch was successfully deployed

1 active deployment
testing — e5773779 Deployed Sep 29, 2026 by pacificcode via build (3.8) #69
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants