cyclonedx-gomod

Generate CycloneDX software bill of materials from Go module dependencies

brewmacoslinux
Try with needOr install directly
Source

About

Creates CycloneDX Software Bill of Materials (SBOM) from Go modules

Commands

cyclonedx-gomod

Examples

create software bill of materials for current project$ cyclonedx-gomod mod -output bom.xml
generate SBOM in JSON format instead of XML$ cyclonedx-gomod mod -output bom.json -output-format json
create SBOM for specific Go module path$ cyclonedx-gomod mod -path ./myproject -output bom.xml
generate SBOM with version information included$ cyclonedx-gomod mod -output bom.xml -version 1.0.0
list all Go module dependencies in SBOM format$ cyclonedx-gomod mod -output dependencies.xml