6.7 Build Supply Chain and Releases

Sections in this chapter · 10

6.7.1Serving Dependencies Inside the Organization

Use this when operating registries, mirrors, repository caches, remote downloaders, or vendoring as a shared Bazel dependency-intake service.

6.7.2Operating Bazel Builds in Air-Gapped Environmentsextra

Use this when a fresh build must resolve every module, archive, generated repository, toolchain, and required image without public network access.

6.7.3Automating Bazel Dependency Updates

Keep committed dependency declarations, lockfiles, ruleset-generated files, patches, toolchains, validation, and rollback coherent through one Bazel-aware update.

6.7.4From Build to Release Candidaterecommended

Define when complete build evidence and immutable outputs form a technically eligible release candidate, before approval, signing, or publication.

6.7.5Build Identities and Secrets

Use this when deciding which identities may build, write cache entries, sign, or publish and where their credentials can leak.

6.7.6Build Provenance and Attestationsrecommended

Use this when binding an artifact to source, materials, invocation, configuration, and builder without claiming more than the evidence proves.

6.7.7Generating SBOMs from Bazel Buildsrecommended

Design and test an artifact-scoped component inventory by joining configured-graph metadata with packaging or inspection evidence and making incomplete or unknown coverage explicit.

6.7.8Signing and Verifying Artifactsrecommended

Bind an accepted signer to an immutable artifact digest, keep credentials outside Bazel actions, and make verification, replay defense, and compromise recovery explicit.

6.7.9Bazel Policy and Compliance Checks

Choose a Bazel policy-check boundary by the evidence it can observe, when it must block, and the trusted invocation that prevents the gate from being silently omitted.

6.7.10Publishing Artifacts Reliablyrecommended

Publish an authenticated, eligible immutable subject replay-safely by reconciling stable intent with destination state.