-
Notifications
You must be signed in to change notification settings - Fork 594
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
CycloneDX OS component does not have a bom-ref #2101
Comments
This is probably the culprit: syft/syft/format/common/cyclonedxhelpers/to_format_model.go Lines 85 to 102 in 25ae7bf
|
One question I have about this is what should the bom-ref value be? Options:
The only requirements given in the CycloneDX spec: "An optional identifier which can be used to reference the component elsewhere in the BOM. Every bom-ref should be unique." The awkwardness with a PURL is that this component doesn't semantically represent a package, so a simple string is probably preferred here. Open to other suggestions |
What happened:
Running
syft ubuntu:latest -o cyclonedx-json
includes a component representing the operating system, but it does not include abom-ref
:What you expected to happen:
A
bom-ref
is set for the component.Steps to reproduce the issue:
syft ubuntu:latest -o cyclonedx-json
Anything else we need to know?:
Environment:
syft version
:Application: syft
Version: 0.89.0
BuildDate: 2023-08-31T14:50:32Z
GitCommit: Homebrew
GitDescription: [not provided]
Platform: darwin/amd64
GoVersion: go1.21.0
Compiler: gc
The text was updated successfully, but these errors were encountered: