You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The documentation says that dev dependencies for poetry are excluded. I did some tests with poetry (1.8.5). I added a dev dependency poetry add pytest --dev which added to the dev group:
But Trivy didn't skip it because now the package in the lockfile doesn't contain the category field as before, based on which Trivy determines the dev dependencies. This is unusual because the lock version remains unchanged and matches the one used in our tests: lock-version = '2.0'.
❯ trivy fs . -f json --list-all-pkgs | grep pytest
2024-12-12-12T17:03:28+06:00 INFO [vuln] Vulnerability scanning is enabled
2024-12-12-12T17:03:28+06:00 INFO [secret] Secret scanning is enabled
2024-12-12-12T17:03:28+06:00 INFO [secret] INFO [secret] If your scanning is slow, please try '--scanners vuln' to disable secret scanning
2024-12-12-12T17:03:28+06:00 INFO [secret] Please see also https://aquasecurity.github.io/trivy/v0.58/docs/scanner/secret#recommendation for faster secret detection
2024-12-12-12T17:03:03:28+06:00 INFO Number of language-specific files num=1
2024-12-12-12T17:03:28+06:00 INFO [poetry] Detecting vulnerabilities...
“ID": ‘[email protected]’, “Name": ‘pytest’,
“PURL": ‘pkg:pypi/[email protected]’,```
The text was updated successfully, but these errors were encountered:
The documentation says that dev dependencies for poetry are excluded. I did some tests with poetry (1.8.5). I added a dev dependency
poetry add pytest --dev
which added to the dev group:But Trivy didn't skip it because now the package in the lockfile doesn't contain the
category
field as before, based on which Trivy determines the dev dependencies. This is unusual because the lock version remains unchanged and matches the one used in our tests:lock-version = '2.0'
.The text was updated successfully, but these errors were encountered: