opensbom-generator / spdx-sbom-generator

Support CI generation of SBOMs via golang tooling.
408 stars 110 forks source link

Not able to generate SBOM in json format #278

Open sgugale opened 2 years ago

sgugale commented 2 years ago

I want to generate SBOM in the JSON format. I used -f flag to do so. But not able to change the spdx (default format).

I have followed the below steps:

  1. Download sbom-spdx-generator binary for the windows
  2. Run sbom-spdx-generator -f json
  3. Observe the SBOM file in spdx format

Can someone please help me on this?

arvchristos commented 1 year ago

This is still an issue, came here to report exactly the same

nishakm commented 1 year ago

Thanks for filing this issue. Since we're new to the project, we're still trying to understand how badly this feature is broken. Lots of other functions are broken as well. We're working to fix the project core. Sorry about this and thanks for your patience.

netomi commented 1 year ago

Cloning the repo and running it with the -f json flag, produces json output for me:

tn@proteus:~/workspace/eclipse/spdx-sbom-generator$ ./bin/spdx-sbom-generator -f json INFO[2023-03-05T16:20:36+01:00] Starting to generate SPDX ... INFO[2023-03-05T16:20:36+01:00] Running generator for Module Manager:go-modwith outputbom-go-mod.json INFO[2023-03-05T16:20:36+01:00] Current Language Version go version go1.19.6 linux/amd64 INFO[2023-03-05T16:20:36+01:00] Global Setting File INFO[2023-03-05T16:20:40+01:00] Command completed successful for below package managers INFO[2023-03-05T16:20:40+01:00] Plugin go-mod generated output at bom-go-mod.json

manifestori commented 1 year ago

@nishakm can you create a new release?