Safeguard
Supply Chain•

What should an offline fallback bundle for CI builds contain?

An offline fallback bundle lets you build when registries are unreachable. A checklist: lockfiles, packages, images, build tools and scan data.

Safeguard Security Team
4 min read

An offline fallback bundle holds everything a clean build needs from outside your repository: lockfiles, package files, base images, build tools and the vulnerability data your scanner uses. Keep it in storage you control, refresh it on a schedule, and prove it works with a regular offline build drill.

What the bundle is for

When the public registry is down, rate limited or unreachable from your network, a normal build fails at the first download. A bundle lets you build and ship a hotfix anyway. It is not a daily workflow. It is insurance, and like all insurance it only counts if it pays out when you need it.

The checklist

ItemWhy it is neededHow to keep it
LockfilesFix exact versionsCommitted in each repository
Package filesSource of the bytesVendor directory, wheelhouse, or a mirror cache
Base container imagesBuilds often start with a pull by tagCopy to your own registry, pin by digest
Build tools and compilersFetched on the fly by many pipelinesBake into a pinned build image
Plugins and extensionsResolved at build timeInclude in the cache or vendor set
Scanner and its dataA gate that cannot run is a decision, not a checkStore a copy of the scanner and its database
Signing keys accessReleases still need signingDocument the path, never copy keys into the bundle
A written runbookPeople under stress forget stepsOne page, tested

Per language notes

The official documentation for each tool describes an offline route.

Do not forget the scanner

Teams remember packages and forget the security gate. If the scanner needs the network to fetch its database, your offline build either skips the check or fails. Decide in advance which, and write it down. The choices are in scanner outage: fail open or fail closed in CI, and the caching side is in how to cache a vulnerability database across scan workers. Also read can a security scanner run offline.

Keeping it fresh and safe

  1. Refresh on a schedule. A bundle six months old holds known vulnerable versions. Rebuild it when lockfiles change and at least monthly.
  2. Scan the bundle. It is a copy of your dependencies, so it carries their issues.
  3. Verify integrity. Record hashes of the bundle files and check them before use. See does a cached package need re-verifying.
  4. Restrict who can change it. An editable bundle is an attack path.
  5. Store it away from the failing region. A bundle in the same place as your CI fails with it.
  6. Drill. Follow the monthly offline build drill.

Where Safeguard fits

Safeguard's SBOM and dependency scanning lists what is in your bundle and which findings matter, using reachability analysis to rank them. Refresh the bundle when that list shows something you should not ship.

Quick check

Is vendoring the same as an offline bundle?

Vendoring keeps packages inside the repository. A bundle is wider: it also covers images, tools and scanner data.

How big does a bundle get?

It depends on your dependencies and images. Start with the services you would hotfix first, not everything.

Sources

Last reviewed: 19 October 2026.

Never miss an update

Weekly insights on software supply chain security, delivered to your inbox.

Self-healing security runs on Safeguard.

Your first fix PR is minutes away.

No sales call required, even your agent can complete the purchase over MCP.