-
Notifications
You must be signed in to change notification settings - Fork 188
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make spdx SBOMs readable by trivy scanner #1038
Make spdx SBOMs readable by trivy scanner #1038
Conversation
The leading `go` does not match the regex used by trivy scanner [0]. [0]: https://github.com/aquasecurity/go-version/blob/1951e80d786fea151973e7cba69562b35c42e77b/pkg/version/version.go#L20-L25
The leading `go` does not match the regex used by trivy scanner [0]. [0]: https://github.com/aquasecurity/go-version/blob/1951e80d786fea151973e7cba69562b35c42e77b/pkg/version/version.go#L20-L25
After testing a bleeding edge trivy build after aquasecurity/trivy#7965 and the code on this PR, trivy scanner can finally detect the OS on the generated SPDX and CycloneDX reports properly, including the lifecycle information!
|
primaryPackagePurpose => 'OPERATING-SYSTEM', | ||
skip_external_refs => 1 | ||
}, undef, undef, {}); | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's more clean to not call spdx_encode_pkg but just do the stuff we need for the operating system entry here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even if the filesystem entry is reflected exactly as a package inside the OS?
5d8f14c
to
542b23b
Compare
Before:
After: