Interview Prep/DevSecOps/Supply chain: signing, SBOM and dependencies

`go build` in CI fails with `verifying module: checksum mismatch` for an internal module

IntermediateTroubleshootingSupply chain: signing, SBOM and dependencies
Answer

Likely causes → Go tries to verify a private module against the public checksum DB (sum.golang.org), or a tag was moved after go.sum recorded it.

Diagnose →

go env GOPRIVATE GONOSUMDB GOPROXY
git ls-remote --tags https://git.acme.internal/lib/auth

Fix → go env -w GOPRIVATE=git.acme.internal/* so private modules bypass the public proxy and sumdb. If a tag was moved, cut a new version; never rewrite released tags.

Prevent → Protect tags in the Git server and set GOPRIVATE in CI images.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply chain: signing, SBOM and dependencies