# Dependencies and packages

> See which packages a repository uses and why, and which repositories use a package or one of its versions.

Source: https://docs.corfedo.ai/use/security/dependencies/

Corfedo reads the dependency files and lockfiles of every indexed repository: manifests such as `package.json`, `Cargo.toml` or `pom.xml`, their lockfiles, Dockerfiles, Terraform and GitHub Actions workflows. A repository's **Dependencies** tab shows what it uses. **Security** › **Packages** shows who uses a package across the workspace.

## See what a repository uses

### Open the dependencies

Open the repository and select **Dependencies**. **Direct** shows the packages a file names itself. Select **All** to add the packages they bring in.

### Find a package

Type in **Filter packages**, or filter by **Ecosystem** or **Findings** › **With findings**. Select a package to see the files that use it, its version and how it is brought in.

**Check:** the package shows the file that declares it and, for a resolved version, the lockfile that records it. A package with no finding and no note was checked and has no known vulnerabilities.

## Find who uses a package

Open **Security** › **Packages** and search for the package, such as `lodash`, or filter by **Ecosystem**. Its page lists **Versions in use**, the advisories that affect them and the **Repositories** that use each version. Select a version to narrow the page to it.

To find the repositories by query instead, search `depends_on:npm/lodash@<4.17.21`, see [Search filters](https://docs.corfedo.ai/use/search/filters/#find-repositories-by-package-or-advisory).

## What is not checked

A package Corfedo cannot check for vulnerabilities shows a note, such as **Version not resolved** or **Other registry**. Select the package to read why. A repository's **Security** tab sums the notes up per ecosystem.

A declared range whose every allowed version is affected is a finding. A range that allows only some affected versions shows **Range allows affected versions** and no finding.

## Troubleshooting

| What you see | Why | What to do |
| --- | --- | --- |
| **Dependencies are listed once the repository is indexed.** | The repository has no searchable build yet | Wait until it shows **Searchable** |
| **Dependency analysis is turned off for this repository.** | The repository's index settings turn dependency analysis off | Ask a repository administrator |
| **Dependencies are being analyzed. Check back in a few minutes.** | Analysis of the indexed commit is running | Wait a few minutes |
| **Some dependency files could not be read, so this list may be incomplete.** | A file is malformed or too large | Check the file in your code host |
| **Dependency analysis failed for the indexed commit.** | Analysis of the indexed commit failed | Ask a repository administrator to check the repository's **Processing** tab |
| **No dependencies found in supported manifests.** | The repository has no dependency file Corfedo reads | Nothing to do |
