This project generates a Software Bill of Materials (SBOM) for Chisel projects. The SBOM is generated in the SPDX format using the metadata from the Chisel jsonwall manifest.
To build the project, run the following command:
go build ./cmd/ssbomInstall with go install:
go install github.com/canonical/ssbom/cmd/ssbom@latestInstall with snap:
snap install ssbom --classicIf built with go build:
./ssbom <path-to-chiselled-rootfs> [<spdx-file-out>]If installed with go install or snap:
ssbom <path-to-chiselled-rootfs> [<spdx-file-out>]NOTE: If there is no output file specified, the SBOM will be generated to a manifest.spdx.json file
in the current working directory.
This tools also provides a script to run trivy on the generated SBOM. To use this, run the following command:
If installed with go install:
./scripts/ssbom-trivy <path-to-chiselled-rootfs> [<extra-trivy-args>]If installed with snap:
ssbom.trivy <path-to-chiselled-rootfs> [<extra-trivy-args>]go test ./...