Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vmware-samples/sbom-composer
A tool that takes two or more micro SBOMs and composes them into one distributable SBOM
https://github.com/vmware-samples/sbom-composer
Last synced: 17 days ago
JSON representation
A tool that takes two or more micro SBOMs and composes them into one distributable SBOM
- Host: GitHub
- URL: https://github.com/vmware-samples/sbom-composer
- Owner: vmware-samples
- License: bsd-2-clause
- Created: 2022-07-20T13:22:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-03-23T13:48:41.000Z (over 1 year ago)
- Last Synced: 2024-04-16T00:17:24.422Z (8 months ago)
- Language: Go
- Size: 63.5 KB
- Stars: 21
- Watchers: 2
- Forks: 3
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Governance: GOVERNANCE.md
Awesome Lists containing this project
- awesome-software-supply-chain-security - sbom-composer - ![GitHub stars](https://img.shields.io/github/stars/vmware-samples/sbom-composer?style=flat-square) - A tool that takes two or more micro SBOMs and composes them into one distributable SBOM. (Software Bill of Materials)
README
# sbom-composer
**This project is now officially migrated to [opensbom-generator/sbom-composer](https://github.com/opensbom-generator/sbom-composer).**
**Please visit the new official repository instead.**
## Overview
sbom-composer is a tool that serves for composing two or more micro SBOMs into a single SBOM document in SPDX format.## Try it out
### Build & Run
1. `cd cli/`
2. `go build`
3. `./sbomcompose -d [flags]`* `flags`:
- `-d`, `--dir`: Folder with micro SBOMs in SPDX format
- `-s`, `--save`: Saves composed SBOM to a given file. `composed.spdx` by default
- `-c`, `--conf`: Configuration for the composed document. `sbom-composer/config/example_config.yaml` by default
- `-o`, `--out`: Output format of the composed document: `tv` or `json`. `tv` by default
- `-f`, `--filters`: A list of packages to filter from the outputTo filter a single, or a list of packages, use `-f -f [...]`.
### Testing changes
Run your local changes with:
```
cd cli/
go run sbom_compose.go -d [flags]
```If testing local changes to some of the sbom-composer's packages, e.g. the `parser`, modify `cli/sbom_compose.go` imports:
```
// "github.com/vmware-samples/sbom-composer/parser"
"sbom-composer/parser"
```
and `cli/go.mod` with:
```
replace sbom-composer/parser => ../parser
```
Then run:
```
cd cli
go mod tidy
```
## DocumentationTo be added.
## Contributing
The sbom-composer project team welcomes contributions from the community. Before you start working with sbom-composer, please
read our [Developer Certificate of Origin](https://cla.vmware.com/dco). All contributions to this repository must be
signed as described on that page. Your signature certifies that you wrote the patch or have the right to pass it on
as an open-source patch. For more detailed information, refer to [CONTRIBUTING.md](CONTRIBUTING.md).