Repository navigation
Description
Current Behavior
While investigating #2494, we found that the method currently being called for dependency graph generation is actually the method responsible for importing the graph.
dependency-track/src/main/java/org/dependencytrack/parser/cyclonedx/CycloneDXExporter.java
Line 86 in 93321f8
| if (components != null) ModelConverter.generateDependencies(qm, bom, project, components); |
dependency-track/src/main/java/org/dependencytrack/parser/cyclonedx/util/ModelConverter.java
Lines 665 to 670 in 93321f8
| /** | |
| * Converts a parsed Bom to a native list of Dependency-Track component object | |
| * @param bom the Bom to convert | |
| * @return a List of Component object | |
| */ | |
| public static void generateDependencies(final QueryManager qm, final Bom bom, final Project project, final List<Component> components) { |
This caused the dependency graph of the to-be-exported project to be deleted during the export. A method for generating the CycloneDX dependency graph from a DT project does not exist yet. BOM exports did never contain the dependency graph.
For #2494 (and #2546), we made the decision to apply a small fix first, to get the major defect of data deletion resolved quickly.
This issue is to actually implement the graph generation during export.
Proposed Behavior
CycloneDX BOMs exported from Dependency-Track should contain a dependency graph.
Checklist
- I have read and understand the contributing guidelines
- I have checked the existing issues for whether this enhancement was already requested
Activity
Add support for dependency graph in CycloneDX exports
Add support for dependency graph in CycloneDX exports
github-actions commentedon May 15, 2023
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Add support for dependency graph in CycloneDX exports