Interview Prep/DevSecOps/Container image and IaC scanning

Scanning a multi-arch image gives different results on the amd64 and arm64 runner

AdvancedTroubleshootingContainer image and IaC scanning
Answer

Likely causes → The tag points to an index; each runner resolves its own platform manifest, which may come from different base layers or package versions.

Diagnose →

docker buildx imagetools inspect myapp:1.4
trivy image --platform linux/arm64 myapp:1.4
trivy image --platform linux/amd64 myapp:1.4

Fix → Scan every platform explicitly in CI and gate on the union.

Prevent → Scan and sign by digest, per platform, as part of the release job.

All DevSecOps questions

More on Container image and IaC scanning