Commit 326925d
Fix SBOM generation for Docker packages without OCI export
When exportToCache is false, Docker images are built and loaded into the
Docker daemon with their content hash as the tag. SBOM generation was
failing because syft couldn't find these images - it was trying all
providers (registry, podman, containerd, etc.) instead of looking in
the local Docker daemon.
The fix explicitly configures syft to use the 'docker' source provider,
similar to how the OCI export path uses 'oci-archive'. This tells syft
to look for the image in the local Docker daemon.
Tested with integration test that covers both paths:
- exportToCache=false (Docker daemon) - now works
- exportToCache=true (OCI layout) - still works
Co-authored-by: Ona <[email protected]>1 parent 9a7c4df commit 326925d
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
266 | 266 | | |
267 | 267 | | |
268 | 268 | | |
269 | | - | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
270 | 273 | | |
271 | 274 | | |
272 | 275 | | |
| |||
0 commit comments