Skip to content

kchetans/sbomex

 
 

Repository files navigation

sbomex: SBOM Explorer

Go Reference Go Report Card

sbomex is a command line utility to help query and pull from Interlynk's public SBOM repository. The tool is intended to help familiarize with the specifications and formats of common SBOM standards and the quality of produced SBOMs (See sbomqs - SBOM Quality Score for how the score is computed).

The underlying repository is updated periodically with SBOMs from a variety of sources built with many tools.

sbomex search : Search repository for matching SBOMs

search commands finds SBOMs in the repository that matches given filtering criteria (specification, format or tool name)

sbomex search --format json --spec cdx --tool trivy --limit 5
  ID   TARGET                   QUALITY  TYPE      CREATOR       
  5    centos:latest            7.39     cdx-json  trivy-0.36.1  
  14   centos:centos7.9.2009    7.38     cdx-json  trivy-0.36.1  
  23   centos:centos7           7.38     cdx-json  trivy-0.36.1  
  32   centos:7.9.2009          7.38     cdx-json  trivy-0.36.1  
  41   centos:7                 7.38     cdx-json  trivy-0.36.1  

sbomex pull : Downloads specified SBOM from the repository and prints to the screen

sbomex pull --id 23
{
   "SPDXID": "SPDXRef-DOCUMENT",
   "creationInfo": {
   	"created": "2023-03-01T01:32:02.939561Z",
   	"creators": [
   		"Tool: trivy",
   		"Organization: aquasecurity"
   	]
   },
   "dataLicense": "CC0-1.0",
...

Installation

Using Prebuilt binaries

https://github.com/kchetans/sbomex/releases

Using Homebrew

brew tap interlynk-io/interlynk
brew install sbomex

Using Go install

go install https://github.com/kchetans/sbomex@latest

Using repo

This approach invovles cloning the repo and building it.

  1. Clone the repo git clone git@github.com:interlynk-io/sbomex.git
  2. cd into sbomex folder
  3. make build
  4. To test if the build was successful run the following command ./build/sbomex version

Contributions

We look forward to your contributions, below are a few guidelines on how to submit them

  • Fork the repo
  • Create your feature/bug branch (git checkout -b feature/new-feature)
  • Commit your changes (git commit -am "awesome new feature")
  • Push your changes (git push origin feature/new-feature)
  • Create a new pull-request

About

Find & Download sboms

Resources

License

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 82.9%
  • Makefile 10.0%
  • Ruby 7.1%