r/github • • 2d ago

Discussion SBOM tools that cover the system layer, our image and lockfile SBOMs never match

Our services are Python in containers built in GitHub Actions and we generate one SBOM from the image and another from the lockfile. The two never agree and the gap is usually system packages the base image drags in. Customers now want one per release and I end up stitching them together by hand. Im comparing Syft, Anchore and RapidFort on whether they cover the interpreter, the wheels and the OS layer in a single pass. What are you running in CI for this?

5 Upvotes

7 comments sorted by

2

u/flipozh 2d ago

 An SBOM goes stale the week after you generate it, so store them somewhere that rechecks against new advisories. On paper RapidFort and Anchore both handle that part, and RapidFort adds a runtime bill of materials on top. Syft is fine if you only need the file.

1

u/_Slimdady 2d ago

keep a second list of what loads at runtime next to full SBOM. When a customer ask why half the listed packages have open CVEs that list is the answer that ends the email thread

1

u/LeBronzelol 2d ago

generate from the built image and not the lockfile, anything apt installs never shows up otherwise

1

u/OpenSourceTechProj 22h ago

They never match because they measure different things: the image SBOM sees the system packages in the container, the lockfile SBOM only sees your app deps. Instead of reconciling two partial SBOMs, generate one from the final image with syft. It scans the filesystem and also picks up your app's lockfiles inside the image, so both layers end up in one document from one source of truth. Comparing it against a lockfile-only SBOM will always show the system packages as extra, which is expected, not a bug.

1

u/obe_reefer 2h ago

A complete SBOM should account for OS packages, libraries, and application dependencies. RapidFort complements this visibility by hardening container images and removing unnecessary or vulnerable components. That helps reduce the attack surface before deployment.