BUG: DejaCode exported CycloneDX SBOM does not retain dependency relationship #271
Labels
bug
Something isn't working
design needed
Design details needed to complete the issue
enhancement
New feature or request
HighPriority
High Priority
Describe the bug
Current DejaCode versions already represent the relationships between packages in a product's inventory and their dependencies with other packages. However, when exporting an SBOM that relationship is not correctly represented in the resulting file. This was tested with CycloneDX as output format.
The resulting file list all packages as if they are direct dependencies. This is incorrect, has some may only be transitive dependencies. This is highly important to get right for regulatory purposes as it indicates who is responsible for fixing issues or updating versions. If it is a direct dependency then the organisation developing the product is directly responsible. However, if a dependency of the product has transitive dependencies where a package is outdated, then the organisation developing the product may have to wait for a patch of that dependency to be released. Furthermore, displaying transitive dependencies as direct dependencies is simply inaccurate for the purpose of software component analysis.
To Reproduce
Expected behavior
Instead of having all packages listed in "dependsOn" as direct dependencies, they should be listed as follow:
Important: The SBOM import must also ensure that only direct dependencies are listed as packages in the inventory and indirect/transitive dependencies are listed as dependecies. Otherwise this cannot be fixed afterwards. Hence, this issue is related to #122
Screenshots
n.a.
Context (OS, Browser, Device, etc.):
n.a.
The text was updated successfully, but these errors were encountered: