Depot Packages

Manage repositories

Create a Private repository to publish private packages, a Cache repository for a custom upstream, or a Virtual repository to use both through one endpoint. Creating or changing repositories requires owner or administrator access.

Create a repository

  1. Open your organization's Packages.
  2. Select Create repository.
  3. Choose the package format and repository type.
  4. Enter a name and the settings for that type, then create the repository.
  5. Open Setup and follow the instructions for your package manager.

Repository names are unique within an organization and format. Use lowercase letters, digits, and single hyphens, starting and ending with a letter or digit. Names can contain up to 64 characters. Different formats can use the same repository name.

Combine private and upstream packages

For an npm project that needs both internal packages and npm dependencies:

  1. Create a Private npm repository named internal.
  2. Create a Virtual npm repository named team.
  3. Add internal and the built-in npmjs cache as Sources, with internal first.
  4. Open Settings. Under Sources and publishing, select internal in Publish packages to if your team should publish through team, then save the changes.
  5. Configure clients to use team with the npm guide.

Sources must belong to the same organization and package format. A Virtual repository can use Private and Cache repositories as sources, but not other Virtual repositories. Source order affects resolution when more than one source supplies a file. Select Publishing off in Publish packages to to make the Virtual repository read-only.

By default, Dependency confusion protection is enabled. If a Private source contains a package name, the Virtual repository excludes all upstream versions of that name. This prevents an upstream package with a higher version from replacing your private package. Keep this protection enabled unless you intend to combine private and upstream versions. To reserve an unpublished name or scope, block it on the Cache source with a policy rule.

Add a custom upstream

Create a Cache repository and enter the upstream registry's base URL. Use a format-specific URL: for example, a Python simple index or a Cargo sparse index. If the upstream requires credentials, configure them in repository settings. Clients authenticate to Depot; Depot uses the configured upstream credentials.

Built-in caches already have upstream URLs. You can change their policies and retention, but can't change those URLs or delete the repositories. Creating or listing a cache doesn't reroute package-manager traffic automatically.

Control which dependencies are available

Policy rules can apply to an organization, a format, or a repository. Choose an action:

ActionEffect
BlockPrevent matching packages or versions from being served, including private packages
AllowPermit matching upstream packages when Policy mode is Allow list
ExemptSkip the minimum release age for matching upstream versions

A block takes precedence over an allow or exemption. Package patterns use * as a wildcard. Version patterns match the format's version representation, not package-manager version ranges such as ^1.0.

Minimum release age delays upstream versions where a reliable publish time is available. It doesn't delay your private uploads. If both a Virtual repository and a Cache source set an age, the larger value applies. It isn't a malware scan, and formats without reliable publish times can't enforce it for those versions.

Most indexes omit blocked versions, and file downloads return a policy error. APT caches in upstream signing mode preserve the distribution's signed indexes, so blocked versions can remain listed while their downloads are denied.

Check a version

Check whether your package policies allow a specific version and see which rules match.

  1. Open your organization’s Packages settings.
  2. Under Check a version, select a repository.
  3. Enter the package name and version.
  4. Select Check.

The result shows the policy decision, matching rules, and minimum release age. It also shows the source repository and publication date when available.

Block versions with security advisories

Depot imports security advisories from OSV.dev every hour. Advisories don't block downloads until you create a Block rule with an Advisory condition.

Advisory conditionMatches
Malicious packageVersions affected by an OSV malicious package advisory (MAL-)
Low severity or higherVersions affected by a vulnerability advisory rated low severity or higher
Medium severity or higherVersions affected by a vulnerability advisory rated medium severity or higher
High severity or higherVersions affected by a vulnerability advisory rated high severity or higher
Critical severityVersions affected by a vulnerability advisory rated critical severity

Severity conditions read the database_specific.severity field from OSV records, such as GitHub Security Advisories (GHSA-). Advisories without a severity value don't match severity conditions.

Use * as the Package pattern and leave Version pattern empty to cover all packages in the rule's scope. Advisory rules apply only to upstream versions served through Cache repositories for Cargo, Composer, Maven, npm, NuGet, PyPI, and RubyGems. Private packages aren't affected, because OSV describes public packages. Organization-wide advisory rules apply only to those seven formats. Format and repository rules can set an advisory condition only for those formats.

When an advisory rule denies a version, Depot includes the advisory ID in the client error message. If you leave Reason empty, Depot returns the version is affected by advisory <id>. If you set a custom reason, Depot appends the advisory ID in parentheses.

To test whether a repository serves a package version, run Check a version on your organization's Package policies page. When an advisory rule denies the version, the result shows the advisory ID with a link to OSV.dev.

View advisory findings

Depot Packages matches upstream package names and versions against OSV.dev advisories. These checks use known affected versions and version ranges from OSV; they don't scan package contents. Findings appear whether or not you configure an advisory rule.

  1. Open your organization's Packages.
  2. Open a Cache repository for a supported format.
  3. Select a package to see badges for malicious advisories and the highest vulnerability severity on each version.
  4. Select a version to view its advisory findings.

Each finding includes an advisory ID and a link to OSV.dev, with a summary and fixed versions when available. Vulnerability findings show their severity, or Unrated when the advisory has no recognized severity value. A finding doesn't block a download unless it matches a blocking advisory rule.

You can also run Check a version on your organization's Packages settings page to view findings alongside the policy decision.

Findings appear in order of risk: malicious advisories first, then vulnerability advisories from highest severity to lowest, then by advisory ID. Fixed in lists every fixed version recorded in the OSV advisory across all affected ranges.

Findings cover only upstream versions in Cache repositories for Cargo, Composer, Maven, npm, NuGet, PyPI, and RubyGems. If Depot can't read advisory data temporarily, the page displays a notice and still loads the version list or policy decision.

Retain cached packages

Cache repositories evict files that haven't been downloaded for 30 days by default. Each download resets that file's last-access time. In Settings, use Remove unused files after under Cache to change retention or disable eviction.

If an upstream removes a package after Depot evicts it, Depot can't fetch it again. Disable eviction when you need to retain cached files. Versions in Private repositories aren't automatically removed by cache retention.

Find and download packages

To find a package, open a Private or Cache repository and enter part of the package name in Filter by name. The filter matches package names that contain the text anywhere in the name, ignoring case. For example, bar matches @foo/bar-utils.

To inspect a stored file, open the package in its Private or Cache repository and select a version. In the file list, select the download button next to the file. Depot doesn't let you download files of a version that a policy blocks.

Publish and replace versions

Members with write permission can publish. Deleting packages and overwriting existing versions require administrative permission.

Private repositories have Immutable versions enabled by default to prevent overwriting published versions. To allow administrators to replace files in an existing version, open the repository’s Settings, disable Immutable versions, and save. Support for overwrites depends on the package format.

Prefer publishing a new version so existing consumers keep reproducible dependencies.

If you configure attestation publishers, Depot validates supplied provenance against those identities. This doesn't require every upload to include provenance or restrict all publishing to those workflows. Use credential access, job security policies, and trusted publishing policies to control who can publish.