Generate a software bill of materials
codeinspectus_generate_sbomGenerate a CycloneDX or SPDX SBOM for any project using Trivy. Outputs the SBOM file to a specified path and provides its location and component count.
Instructions
Generate a CycloneDX or SPDX SBOM for the target project using Trivy. Writes the SBOM file to the chosen output path and returns its location and component count. Offline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to the project to generate an SBOM for. | |
| format | No | SBOM format (default: cyclonedx). | |
| output_path | No | Where to write the SBOM file. Default: <path>/codeinspectus-sbom.<fmt>.json. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| format | Yes | ||
| generated | Yes | ||
| output_path | Yes | ||
| component_count | Yes |