Lei.Sbom.CycloneDX (LowEndInsight v0.9.1)

Copy Markdown View Source

Generates CycloneDX 1.4 JSON SBOM documents from LowEndInsight analysis reports. Embeds bus-factor risk scores as custom properties on each component.

Summary

Functions

Generates a CycloneDX 1.4 JSON string from a LowEndInsight report map. The report should be the result of AnalyzerModule.analyze/3 for a single repo, or AnalyzerModule.analyze/4 for multiple repos.

Functions

generate(report)

@spec generate(map()) :: {:ok, String.t()} | {:error, String.t()}

Generates a CycloneDX 1.4 JSON string from a LowEndInsight report map. The report should be the result of AnalyzerModule.analyze/3 for a single repo, or AnalyzerModule.analyze/4 for multiple repos.