anthonyharrison / distro2SBOM

Generates SBOM files from system packaging information
Apache License 2.0
10 stars 7 forks source link

Getting information for windows systems does not work #6

Closed juaalta closed 1 year ago

juaalta commented 1 year ago

I am trying to obtain the SBOM of a Windows 10 system and I always get the same error

[ERROR] Feature not available
[ERROR] Unable to locate package

The command line I run is:

distro2sbom --distro windows --name "Microsoft Windows 10 Pro" --release "10.0.19044" --system --sbom cyclonedx --format json --output-file "sbom.json"

The error obtained when executing in debug mode is

Distro type: windows
Input file:
Distro name: Microsoft Windows 10 Pro
Distro release: 10.0.19044
Package:
System SBOM: True
SBOM type: cyclonedx
Format: json
Output file: sbom.json
This may take some time...
[ERROR] Feature not available
[ERROR] Unable to locate package
anthonyharrison commented 1 year ago

@juaalta This is correct behaviour as the system option is not available for Windows distrobutions, See the documentaion for--system in the README.

juaalta commented 1 year ago

OK, thanks a lot. Is there a plan for the systems option to be available for Windows in the future?

anthonyharrison commented 1 year ago

OK, thanks a lot. Is there a plan for the systems option to be available for Windows in the future?

@juaalta No plans at the moment to get system level information from Windows. Some system information can be obtained using the file input as specified in the README although the relationships between the components isn't provided.