How the dependabot CLI works
mainThe CLI orchestrates the update process using container isolation to protect secrets:
- Container Setup: It pulls the
updaterandproxyimages and configures a container network. - Proxy Isolation: The
proxystarts first. All network requests from theupdaterare routed through this proxy. The proxy injects credentials into outbound requests so theupdater(which may run untrusted code from package manifests) never has direct access to secrets. - Execution: The
updaterruns using the job description as input. - Recording: The CLI records the calls made by the updater (e.g., to create/update PRs). If the
--output/-oflag is used, these recorded calls are written to a YAML file.