Repository navigation
fix(scan): scan without facts when no build root is found - #1817
Jeppe Fredsgaard Blaabjerg (jfblaa) wants to merge 1 commit into
Conversation
`--dynamic-sbom-inference` failed scan create, scan reach and fix when a repository had no .NET, Gradle, Maven or sbt build, so the flag could not be passed to every repository. They now log that no build root was found and continue as without the flag, and `socket manifest dynamic-sbom-inference` reports it and exits successfully.
PR SummaryMedium Risk Overview
Unchanged: runs still fail when a discovered build root fails to generate facts, or when reachability is requested but no build produced facts (empty/skipped roots). Reviewed by Cursor Bugbot for commit c8985b4. Configure here. |
--dynamic-sbom-inferenceno longer fails a repository without a .NET, Gradle, Maven or sbt build.socket scan create,socket scan reachandsocket fixlog that no build root was found and carry on as without the flag, andsocket manifest dynamic-sbom-inferencereports it and exits successfully. The flag can now be passed to every repository a pipeline scans.Behaviour
socket fix: no--socket-facts-sidecarand no facts-only flag reach Coana; the fix runs exactly as without the flag.Tests
run-dynamic-sbom-inference.test.mts: no build root returns no facts and no facts-only types.generated-socket-facts.test.mts,coana-fix-dynamic-sbom-inference.test.mts: fix generates nothing and runs Coana as without the flag.handle-create-new-scan.test.mts,handle-manifest-dynamic-sbom-inference.test.mts: the scan goes on without facts; the manifest command succeeds with its message.