Skip to content

Include dependency graph in CycloneDX exports #2616

Closed

Description

@nscuro

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.

if (components != null) ModelConverter.generateDependencies(qm, bom, project, components);

/**
* 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

Activity

  1. added
    enhancement
    on Mar 22, 2023
  2. added this to the 4.9 milestone on Mar 22, 2023
  3. added a commit that references this issue on Mar 22, 2023
    833ba31
  4. added
    p2
    on Mar 24, 2023
  5. added a commit that references this issue on Apr 10, 2023
    6b4f4c8
  6. modified the milestones: 4.9, 4.8 on Apr 11, 2023
  7. github-actions commented on May 15, 2023

    @github-actions
    Contributor

    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.

  8. locked as resolved and limited conversation to collaborators on May 15, 2023
  9. added a commit that references this issue on Jun 17, 2026
    045d393
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementp2

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions