-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Fix for 4 vulnerabilities #33
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -13,7 +13,7 @@ Pillow==10.3.0 | |||||||||||||||||||||||||||||||||||||||||||
| protobuf==4.23.4 | ||||||||||||||||||||||||||||||||||||||||||||
| sacremoses==0.1.1 | ||||||||||||||||||||||||||||||||||||||||||||
| scikit-learn==1.5.0 | ||||||||||||||||||||||||||||||||||||||||||||
| sentencepiece==0.2.0 | ||||||||||||||||||||||||||||||||||||||||||||
| sentencepiece==0.2.1 | ||||||||||||||||||||||||||||||||||||||||||||
| tqdm==4.66.4 | ||||||||||||||||||||||||||||||||||||||||||||
| werkzeug==3.0.2 | ||||||||||||||||||||||||||||||||||||||||||||
| xgboost==2.0.3 | ||||||||||||||||||||||||||||||||||||||||||||
|
|
@@ -51,4 +51,6 @@ pyyaml==6.0.1 | |||||||||||||||||||||||||||||||||||||||||||
| timm==1.0.7 | ||||||||||||||||||||||||||||||||||||||||||||
| torchmetrics==1.4.0 | ||||||||||||||||||||||||||||||||||||||||||||
| pycocotools==2.0.7 | ||||||||||||||||||||||||||||||||||||||||||||
| sentence-transformers==3.0.1 | ||||||||||||||||||||||||||||||||||||||||||||
| sentence-transformers==3.0.1 | ||||||||||||||||||||||||||||||||||||||||||||
| torch>=2.10.0 # not directly required, pinned by Snyk to avoid a vulnerability | ||||||||||||||||||||||||||||||||||||||||||||
| wheel>=0.46.2 # not directly required, pinned by Snyk to avoid a vulnerability | ||||||||||||||||||||||||||||||||||||||||||||
|
Comment on lines
51
to
+56
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correctness: Installation will fail: 🤖 AI Agent Prompt for Cursor/Windsurf
✨ Committable Code Suggestion
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The version specifier for The Snyk vulnerability |
||||||||||||||||||||||||||||||||||||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The version specifier for
torchappears to be incorrect. Version2.10.0does not exist on PyPI, which will cause the installation to fail.Based on the Snyk vulnerability details (
SNYK-PYTHON-TORCH-10332644,SNYK-PYTHON-TORCH-10332645), the fix is available in versions2.1.0and newer. The intended requirement was likelytorch>=2.1.0.This corrected version would also be compatible with
pytorch==2.3.0, which is installed via Conda in theDockerfile.