Poetry dependencies no longer found in Trivy 61.x #8783
willem-delbare
started this conversation in
Bugs
Replies: 2 comments 3 replies
-
|
Hi @willem-delbare ! PEP-735 does not define the concept of developer dependencies, so Trivy counts all dependencies outside the main group |
Beta Was this translation helpful? Give feedback.
3 replies
-
|
Hi! It is also the standard amongst a lot of projects, I think it makes more sense to only mark this specific group as dev dependencies and keep scanning the other groups |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
Trivy recently made a change to suppress devdeps in Poetry.lockfiles, but it suppresses too many packages.
Having the following code in pyproject.toml will result in a sentry-sdk CVE not being detected.
[tool.poetry.dependencies]
python = ">=3.11,<3.13"
pandas = "1.5.0"
[tool.poetry.group.release]
optional = false
[tool.poetry.group.release.dependencies]
sentry-sdk = {version = "^2.0.0"}
[tool.poetry.group.dev.dependencies]
black = "^24.4.0"
Desired Behavior
Detect the CVE once again
Actual Behavior
No CVE detected
Reproduction Steps
- add pyproject.toml file, generate poetry.lock file - scan with new trivy - no CVE pops up for sentry-sdkTarget
Filesystem
Scanner
Vulnerability
Output Format
Table
Mode
Standalone
Debug Output
Operating System
Win
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions