sbom-utility

(β˜… 162)

Utility that provides an API platform for validating, querying and managing BOM data

  • .gitignore
  • .golangci.yaml
  • CREDITS.md
  • custom.json
  • go.mod
  • go.sum
  • LICENSE
  • main.go
  • Makefile
  • NOTICE.txt
  • README.md
  • sbom-validation-tests.md

# Installation Guide

1. Get the code
git clone https://github.com/CycloneDX/sbom-utility

Downloads the entire project code from GitHub to your computer.

cd sbom-utility

Moves into the project folder you just downloaded.

2. Go

Medium Recommended
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Go The Go compiler and toolchain.
go run main.go validate -i test/cyclonedx/1.4/cdx-1-4-mature-example-1.json

Runs the Go program directly without a separate build step.

$ go build ${LDFLAGS} -o ${BINARY}

Compiles the Go program into an executable.

βœ… If the build finishes without errors, it worked. If you used go run ., check the terminal output.

Pulled directly from this repo's README.

3. Make

Medium
Prerequisites
  • Git Needed to download the project code from GitHub.
  • Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make build

Compiles the code based on the generated build configuration to produce an executable.

make test

Compiles the code based on the generated build configuration to produce an executable.

make test_cmd

Compiles the code based on the generated build configuration to produce an executable.

make test_schema

Compiles the code based on the generated build configuration to produce an executable.

make release

Compiles the code based on the generated build configuration to produce an executable.

βœ… If it finishes without errors, it worked. Try running the generated executable directly.

Pulled directly from this repo's README.

// repository documentation