Skip to content

Backport: Use modern CycloneDX tools metadata - #7259

Merged
nscuro merged 1 commit into
DependencyTrack:4.14.xfrom
nscuro:backport-pr-6785-4.14.x
Sep 8, 2026
Merged

nscuro merged 1 commit into
DependencyTrack:4.14.xfrom
nscuro:backport-pr-6785-4.14.x

Conversation

@nscuro

@nscuro nscuro commented Sep 8, 2026

Copy link
Copy Markdown
Member

Description

Uses modern CycloneDX tools metadata.

Addressed Issue

Backports #6785

Additional Details

N/A

Checklist

  • I have read and understand the contributing guidelines
  • This PR fixes a defect, and I have provided tests to verify that the fix is effective
  • This PR implements an enhancement, and I have provided tests to verify that it works as intended
  • This PR introduces changes to the database model, and I have updated the migration changelog accordingly
  • This PR introduces new or alters existing behavior, and I have updated the documentation accordingly
  • This PR is a substantial change (per the ADR criteria), and I have added an ADR under docs/adr/

Represent Dependency-Track as a component under `metadata.tools.components`
for CycloneDX 1.5 and newer exports, and keep the legacy `metadata.tools`
array for older spec versions.

CycloneDX 1.5 introduced the object form and deprecated the array of `tool`
objects. The schema models the two as a `oneOf`, so exactly one of them may be
present. Since the default export version is 1.5, Dependency-Track emitted the
deprecated form for every export by default.

The spec version is now threaded from the resource down to
`ModelConverter#createMetadata`, which previously had no way of knowing which
schema it was building for.

Co-Authored-By: Akshat Sparsh <akshatsparsh@gmail.com>
(cherry picked from commit c157ee4)
Signed-off-by: nscuro <nscuro@protonmail.com>
@nscuro nscuro added this to the 4.14.4 milestone Sep 8, 2026
@nscuro nscuro added the enhancement New feature or request label Sep 8, 2026
@owasp-dt-bot

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity

Metric Results
Complexity 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@nscuro
nscuro merged commit acc9a20 into DependencyTrack:4.14.x Sep 8, 2026
9 checks passed
@nscuro
nscuro deleted the backport-pr-6785-4.14.x branch September 8, 2026 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants