Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Not able to generate SBOM in json format #278

Open
sgugale opened this issue Nov 1, 2022 · 4 comments
Open

Not able to generate SBOM in json format #278

sgugale opened this issue Nov 1, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@sgugale
Copy link

sgugale commented Nov 1, 2022

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?

@sgugale sgugale added the bug Something isn't working label Nov 1, 2022
@arvchristos
Copy link

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

@nishakm
Copy link
Collaborator

nishakm commented Jan 3, 2023

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
Copy link

netomi commented Mar 5, 2023

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
Copy link

@nishakm can you create a new release?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants