Skip to main content

Search through your dependencies

Semgrep Supply Chain's dependency search feature allows you to query for any dependency in your codebase at any time. This feature detects all transitive and direct dependencies across all of your repositories in Semgrep AppSec Platform. Dependency search lists all the versions of a dependency as well as the repositories that use the dependency.

For newly discovered vulnerabilities, which may not yet have a formal CVE or Supply Chain rule, you can use dependency search to discover if you use the vulnerable dependency across all your repositories. You can also use dependency search to see all the versions of a dependency, which can be useful for standardization purposes.

Screenshot of default dependency search page Figure. Default dependency search page.

  • You can only use dependency search through Semgrep AppSec Platform. Sign up or sign in to Semgrep AppSec Platform.
  • You need at least one completed Semgrep Supply Chain scan of all the repositories you want to search through.

To search through your dependencies:

  1. Sign in to Semgrep AppSec Platform.
  2. Go to Settings > Deployment and navigate to the Supply Chain (SCA) section. Semgrep Supply Chain Settings tab Figure. The Semgrep Supply Chain Settings tab.
  3. Click Dependency search if it is not already enabled.
  4. Navigate to Supply Chain > Dependencies. Semgrep Supply Chain Dependencies tab Figure. The Semgrep Supply Chain Dependencies tab.
  5. Type the name of the dependency you are searching for.
  6. Optional: Apply filters as necessary for your search.

Search for ranges of supported versions with the > or < operators following the @ operator. For example, body-parser@<1.18.0 finds all versions of body-parser greater than 1.18.0.

Dependency search provides the following filters, which correspond to the data points displayed by Semgrep about each dependency:

The relationship of the dependency to your codebase. The relationship can be direct, indirect, or unknown.
License Policy
The License Policy you set; determines whether a dependency can be used based on its license.
The dependency's license
The language of the dependency

Screenshot of dependency search with query Figure. Dependency search page with sample search query.


This section describes possible issues and how to resolve them.

No dependencies appear in the Dependencies page

To ensure that your dependencies appear, check the following:

  • Ensure that Semgrep Supply Chain can parse your lockfile. Refer to Supported languages for a list of supported languages and lockfiles.
  • Make sure you've scanned the repository at least once.
  • If you are using filters, ensure that your filters and search syntax is correct.
  • Ensure that the scan you're referring to isn't a diff-aware scan. Only dependencies scanned off of full scans are shown on the Dependencies page.

Not finding what you need in this doc? Ask questions in our Community Slack group, or see Support for other ways to get help.