Supported scan options
To scan without building, use a lockfile or a dependency file that records package versions. For a Gradle project without gradle.lockfile, you can use gradle/verification-metadata.xml if available.
Scanning with a build
1. Scan an exported SBOM
Scan the SBOM generated during the build to check the project's packages and versions.
2. Scan build artifacts
You can also scan a built JAR file or an installed node_modules directory.
Scanning without a build
| Language | Dependency files |
|---|---|
| C/C++ |
|
| Dart |
|
| Elixir |
|
| Go |
|
| Haskell |
|
| Java |
|
| JavaScript |
|
| .NET |
|
| PHP |
|
| Python |
|
| R |
|
| Ruby |
|
| Rust |
|
Rust source reachability
Rust SCA looks for evidence in source code that the project uses crates.io packages listed in Cargo.lock. If a package is flagged as malicious, check whether the project uses it.
Image and container scanning
You can also scan Docker container images.