Bug Report: Trivy fails to detect multi-module Gradle projects #9740
brain-zone
started this conversation in
Bugs
Replies: 1 comment
-
|
Hello @brain-zone
IIUC your project contains *.gradle, *.java, and other files, but doesn’t include a gradle.lock file. Trivy supports only the lock file for Gradle and doesn’t scan source code files: That’s why Trivy doesn’t show vulnerabilities for the project, Regards, Dmitriy |
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
Bug Report: Trivy fails to detect multi-module Gradle projects
Version
Steps to Reproduce
trivy repo --skip-db-update --offline-scan --scanners vuln,misconfig,secret,license .Actual Output
Expected Output
Additional Context
trivy rootfssuccessfully detects and scans the built artifactsImpact
Desired Behavior
Expected Output
Actual Behavior
Actual Output
Reproduction Steps
1. Create a multi-module Gradle project with the above structure 1. Run: `trivy repo --skip-db-update --offline-scan --scanners vuln,misconfig,secret,license . `Target
Filesystem
Scanner
Vulnerability
Output Format
JSON
Mode
Standalone
Debug Output
Operating System
macOS Ventura
Version
Checklist
trivy clean --allBeta Was this translation helpful? Give feedback.
All reactions