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

Licence scan fails the build: `AGPL-3.0` detected in a transitive Go module

BeginnerTroubleshootingSupply chain: signing, SBOM and dependencies
Answer

Likely causes → A new dependency pulled an AGPL module; your policy blocks strong copyleft for SaaS.

Diagnose →

go mod why -m github.com/some/agpl-lib
trivy fs --scanners license --severity HIGH,CRITICAL .

Fix → Replace the dependency or the parent that pulls it; if it is test-only, confirm it is not linked into the shipped binary and record the decision with legal.

Prevent → Run licence checks on PRs that change go.mod, with an allowlist agreed with legal.

All DevSecOps questions Roadmap: Supply chain, secrets & identity

More on Supply chain: signing, SBOM and dependencies