glab dependency-firewall yarn

Run Yarn through the GitLab Dependency Firewall. (BETA)

Synopsis

Run the yarn binary through the GitLab Dependency Firewall. The command checks each package download and upload against the policy for the current project, refuses blocked packages, and summarizes the results after the run.

The command uses your package manager’s registry or index configuration, and does not modify it.

This command requires Yarn 3.2 or later, or Yarn Classic (1.x). It refuses Yarn 2.x through 3.1, because those versions cannot stop a .yarnrc.yml file from routing registry traffic around the firewall. During the run, Yarn ignores per-host networkSettings from every .yarnrc.yml file, so every request goes through the firewall.

All arguments are forwarded to yarn verbatim.

This feature is in beta and might not be ready for production use. It might be unstable and breaking changes can occur outside of major releases. For more information, see https://docs.gitlab.com/policy/development_stages_support/.

glab dependency-firewall yarn <yarn args> [flags]

Examples

console
# Install dependencies through the Dependency Firewall
glab dependency-firewall yarn install

# Add a package through the Dependency Firewall
glab dependency-firewall yarn add left-pad

Environment variables

HTTPS_PROXY: outbound proxy glab uses to reach package registries. Credentials in the URL are sent to the proxy.
NO_PROXY: hosts glab reaches directly instead of through HTTPS_PROXY.

Options inherited from parent commands

  -h, --help   Show help for this command.