-
Notifications
You must be signed in to change notification settings - Fork 0
[Snyk] Security upgrade torch from 1.13.1 to 2.8.0 #22
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?
Conversation
The following vulnerabilities are fixed by pinning transitive dependencies: - https://snyk.io/vuln/SNYK-PYTHON-TORCH-13052818 - https://snyk.io/vuln/SNYK-PYTHON-TORCH-13052821 - https://snyk.io/vuln/SNYK-PYTHON-TORCH-13052968 - https://snyk.io/vuln/SNYK-PYTHON-TORCH-13052977 - https://snyk.io/vuln/SNYK-PYTHON-TORCH-13052994
Review or Edit in CodeSandboxOpen the branch in Web Editor • VS Code • Insiders |
|
🔒 Entelligence AI Vulnerability Scanner ✅ No security vulnerabilities found! Your code passed our comprehensive security analysis. |
WalkthroughThis PR addresses a security vulnerability identified by Snyk in the PyTorch dependency. Although PyTorch is not directly required by the project, a pinned dependency for torch>=2.8.0 has been added to requirements.txt to ensure the project uses a secure version. This proactive security measure maintains compatibility with all existing dependencies while mitigating the identified vulnerability risk. Changes
Sequence DiagramThis diagram shows the interactions between components: sequenceDiagram
title Torch Dependency Update for Vulnerability Mitigation
participant Dev as "Developer"
participant Snyk as "Snyk Security Scanner"
participant Req as "requirements.txt"
participant App as "Application"
participant PyPI as "PyPI Repository"
Dev->>Req: Add dependencies
Note over Req: Initial dependencies including<br/>sentence-transformers==3.0.1
Snyk->>Req: Scan for vulnerabilities
Snyk-->>Dev: Alert: Vulnerability detected<br/>in indirect torch dependency
Dev->>Req: Add "torch>=2.8.0" with comment
Note over Req: Pin torch version to avoid<br/>vulnerability detected by Snyk
App->>Req: Read requirements
App->>PyPI: Request dependencies
PyPI-->>App: Provide torch>=2.8.0 and other dependencies
Note over App: Application runs with secure<br/>version of torch dependency
Note for WindsurfPlease change the default marketplace provider to the following in the windsurf settings:Marketplace Extension Gallery Service URL: https://marketplace.visualstudio.com/_apis/public/gallery Marketplace Gallery Item URL: https://marketplace.visualstudio.com/items Entelligence.ai can learn from your feedback. Simply add 👍 / 👎 emojis to teach it your preferences. More shortcuts belowEmoji Descriptions:
Interact with the Bot:
Also you can trigger various commands with the bot by doing The current supported commands are
More commands to be added soon. |
|
LGTM 👍 |
🎉 Snyk checks have passed. No issues have been found so far.✅ security/snyk check is complete. No issues have been found. (View Details) |
Snyk has created this PR to fix 5 vulnerabilities in the pip dependencies of this project.
Snyk changed the following file(s):
requirements.txtImportant
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.
For more information:
🧐 View latest project report
📜 Customise PR templates
🛠 Adjust project settings
📚 Read about Snyk's upgrade logic
Learn how to fix vulnerabilities with free interactive lessons:
🦉 Learn about vulnerability in an interactive lesson of Snyk Learn.
EntelligenceAI PR Summary
This PR adds a security-focused dependency pin to requirements.txt.