Start Free
2025.3 | Advanced security | Viewing dependencies

Viewing dependencies

On this page

Advanced Security is only available in SonarQube Server, as an add-on starting in Enterprise Edition.

During project analysis, SonarQube Advanced Security conducts software composition analysis (SCA) to identify and list project dependencies and associated risks. It's also possible to export the software bill of materials (SBOM) for your project.

Viewing the list of dependencies

You must build, or rebuild your project's main branch to see the SCA results. After an analysis, a list of dependencies becomes available in the SonarQube Server UI under the Dependencies tab for projects, applications and portfolios. It is updated with each analysis. You need the Browse permission to view dependencies on private projects, applications and portfolios.

The SonarQube Server Dependencies tab.

You can use Filters to narrow down the results. Dependencies can be filtered by:

    • Dependency type: Direct or Transitive
    • Dependency scope: Production or Development
    • Package manager: A list of package managers. See Analyzing projects for dependencies for supported package managers and languages.

Use the search feature to find specific dependencies.

The following information is displayed for each dependency card in the list:

Information on each dependency
  1. Dependency name
  2. Dependency version
  3. Dependency type
  4. Dependency scope
  5. Files where the dependency was identified
  6. Package manager
  7. License

Click on the dependency name to open a detailed view.

Detailed view

Detailed view of a dependency.

The detailed view of a dependency provides the following information: 

  • Details of the dependency, including Dependency type, Dependency scope, Identified using, Package manager and License. Click on the info icon for Identify using to reveal all the files where the dependency was identified.
  • Dependency chains: A list of direct and transitive dependency chains, if available.

About dependency chains

Dependency chains show how a dependency is brought into your project.

Project components often rely on other components, creating dependencies. These dependencies can be direct, where one component immediately uses another, or transitive, where a component relies on another component which, in turn, depends on yet another.

For example In a Project > Component 1 > Component 2 scenario: 

  • The dependency between Project and Component 1 is direct.
  • The dependency between Project and Component 2 is transitive because Component 1 is built using Component 2.

The detailed view indicates whether a dependency has direct and transitive dependency chains and displays the complete path for transitive dependencies.

Getting a high-level view of your dependency usage

You can also view dependencies for applications and portfolios to get a higher-level view of your dependency usage. For example, to get a list, or bill of materials, for all software in use by your organization, you can create a portfolio of All Projects

After you create and refresh a portfolio, you can view Dependencies and Dependency Risks. Searching Dependencies by name allows you to see where a dependency is used in your organization. Searching Dependency Risks by a CVE name allows you to discover where your in organization you may be affected by a newly reported CVE.

Software Bill of Materials (SBOM)

A software bill of materials (SBOM) is an inventory of components your project is built with, including details such as the component name, version, and license.

Because your project depends on these components to build and run your software, getting the SBOM for a project is a key element to track all the items that you depend on for both internal use in the remediation of dependency risks, and external use for compliance with regulations. 

Compliance teams can use SBOMs as an index to keep an inventory of licenses in use. Developers can use SBOMs to manage dependencies. All of this creates greater interoperability and efficiency within an organization. It is a shared language for all of these teams that can be passively generated and maintained based on application builds.

Sonar supports exporting an SBOM in two major SBOM formats: Software Package Data Exchange (SPDX) and CycloneDX.

Exporting the SBOM

You can export the SBOM from the Dependencies page of Projects, Applications, and Portfolios. SBOMs are available in the CycloneDX and SPDX, in both XML and JSON formats.

The export SBOM button on the Dependencies page.

Was this page helpful?

© 2008-2025 SonarSource SA. All rights reserved. SONAR, SONARSOURCE, SONARQUBE, and CLEAN AS YOU CODE are trademarks of SonarSource SA.

Creative Commons License