`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.
More on Supply chain: signing, SBOM and dependencies
`cosign verify` fails with `Error: no matching signatures` for an image CI says it signedBeginnerKeyless `cosign verify` fails: `none of the expected identities matched what was in the certificate`Intermediate`cosign sign` in GitHub Actions fails with `getting signer: getting key from Fulcio: ... no OIDC token`BeginnerKey-based `cosign verify --key cosign.pub` fails after a key rotation for older imagesIntermediate`cosign verify-attestation --type cyclonedx` returns `none of the attestations matched the predicate type`IntermediateKyverno `verifyImages` rejects pods: `failed to verify image ... : no signatures found` for a signed private ECR imageAdvanced