# `Lei.Sbom.CycloneDX`
[🔗](https://github.com/gtri/lowendinsight/blob/main/lib/sbom/cyclonedx.ex#L5)

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

# `generate`

```elixir
@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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
