Skip to content

chore(cyclonedx): emit metadata.tools in the 1.6 components form - #1102

Open
XiaoZ-0218 wants to merge 1 commit into
OWASP:mainfrom
XiaoZ-0218:fix/cyclonedx-tools-1097
Open

chore(cyclonedx): emit metadata.tools in the 1.6 components form#1102
XiaoZ-0218 wants to merge 1 commit into
OWASP:mainfrom
XiaoZ-0218:fix/cyclonedx-tools-1097

Conversation

@XiaoZ-0218

Copy link
Copy Markdown

Summary

  • Migrate metadata.tools from the deprecated CycloneDX 1.6 array (vendor/name/version) to the modern tools.components object (type/name/version/publisher).
  • Pin the new shape in tests/cyclonedx.test.ts so a regression back to the legacy array fails.

Fixes #1097

Dependency-Track note

Issue #1097 asked to verify the documented consumer before shipping. Dependency-Track already models both legacy and component/service-based tool metadata (see DependencyTrack/dependency-track#6785: "Dependency-Track already models both legacy and component/service-based tool metadata"), so this output should remain ingestible.

Test plan

  • CycloneDX unit tests (17 passed)
  • CI on this PR

Replace the deprecated tools array (vendor/name/version) with
tools.components using type, name, version, and publisher so the
BOM stays valid when CycloneDX drops the legacy shape in 1.7.

Fixes OWASP#1097
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

chore(cyclonedx): metadata.tools uses the shape deprecated in 1.6

1 participant