The analyzer is a Software Composition Analysis (SCA) tool that determines the dependencies of software projects within a specified version-controlled input directory (-i). It is the only mandatory tool in the ORT workflow because its output serves as the required input for all subsequent tools.
How it works
The analyzer queries detected package managers to build a tree of transitive dependencies. It does not require modifications to your source code (like build system plugins) if the following preconditions are met:
- Projects use supported package managers in recent versions and follow common best practices.
- Projects can be built in a single step out-of-the-box without custom configuration (e.g., environment variables or build system properties).
Output
The analyzer writes the dependency tree per project into an OrtResult object. This is saved as analyzer-result.yml in the specified output directory (-o). The output format is YAML by default, but can be set to JSON using the -f flag. This file documents the current status of all package-related metadata and can be manually edited or processed by other tools.