feat(sbom): explain an empty or incomplete SBOM with findings (#979) (#985)
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 4s
CI / Deploy Docs (push) Successful in 1m3s
CI / Deploy MCP (push) Successful in 2m44s
CI / Deploy Dashboard (push) Successful in 3m46s
CI / Deploy Agent (push) Successful in 5m55s

Source code without a manifest or lockfile gave an empty SBOM with no
explanation, which reads as "no libraries". Two findings of a new
sbom-coverage check now say why:

- sbom-no-manifest (Medium): code in a language with a package manager
  (Python, JS/TS, Rust, Go, Java/Kotlin, C#, PHP, Ruby, Dart) and no
  manifest or lockfile for it outside vendor directories, one per
  ecosystem. Never for C/C++, Yocto layers, or a tree whose components
  come from its sources (library headers, firmware, CODESYS).
- sbom-dependencies-unresolved (Low): a manifest whose dependencies were
  not resolved, one per manifest the SBOM stage already lists under
  sbom_dependencies; legacy build systems keep their own finding.

Each finding names a concrete way to add the missing file, maps to the
SBOM requirement (cra-ai-23, also bound in the control map) and closes at
the next scan that no longer reports it, as the check completes on every
code scan. Dart is now detected as a source language.

The SBOM page shows an explanation instead of an empty table: where the
SBOM comes from, the target's open findings with their examples and a
link, or a general example. The findings API takes a scanner filter.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit was merged in pull request #985.
This commit is contained in:
sharangandClaude Opus 5.5 committed 2026-11-12 09:21:59 +00:00
1 parent fc72b6a1f4
commit ca8a662b60
20 files changed
+931 -6

No files matched your search

+23
View File
@@ -1254,6 +1254,29 @@
"legacy-build-system-no-sbom"
],
"check": "The product's components must be declared in a machine-readable form an SBOM can be built from; a build system that declares none (Eclipse/ADT, Unity without its package manifest) violates it."
},
{
"tool": "sbom-coverage",
"scan_type": "sbom",
"languages": [
"python",
"javascript",
"typescript",
"rust",
"go",
"java",
"kotlin",
"csharp",
"php",
"ruby",
"dart"
],
"cwe": [],
"rules": [
"sbom-no-manifest",
"sbom-dependencies-unresolved"
],
"check": "The product's components must be declared in a manifest or lockfile an SBOM can be built from; code in a language with a package manager and no manifest, or a manifest whose dependencies are not resolved, violates it."
}
],
"note": null,