Unsupported CycloneDX Framework Component Type #7418
Closed
NyanKiyoshi
started this conversation in
Bugs
Replies: 2 comments 1 reply
-
Hello @NyanKiyoshi Looks like you are right and we can use I think we can check |
Beta Was this translation helpful? Give feedback.
1 reply
-
Created #7432 for this task. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Description
When scanning a CycloneDX JSON BOM file generated by cdxgen, Trivy skips components that have the type
framework
instead of handling them as a library.Desired Behavior
Trivy could potentially handle the
cdx.ComponentTypeFramework
component type with the exact same behavior ascdx.ComponentTypeLibrary
Actual Behavior
Trivy skips the package with the following warning:
This is caused by
BOM.unmarshalType
not handling thecdx.ComponentTypeFramework
type:trivy/pkg/sbom/cyclonedx/unmarshal.go
Lines 162 to 179 in 6a72dd4
Reproduction Steps
Define a Python framework dependency (happens in NPM as well):
Generate a JSON SBOM using cdxgen:
Analyze the SBOM:
You should get the following output (notice Django is missing in the license list):
CycloneDX SBOM Contents
Target
SBOM
Scanner
License
Output Format
Table
Mode
Standalone
Debug Output
Operating System
MacOS Sonoma (14.6.1)
Version
Checklist
trivy clean --all
Beta Was this translation helpful? Give feedback.
All reactions