Skip to content

Add support for DEV_DEPENDENCY_OF Relationship in SPDX 2.2 SBOMs #1140

@nschwerzler

Description

@nschwerzler

Description
Summary:
Request to add support for the DEV_DEPENDENCY_OF relationship type in accordance with the SPDX 2.2 specification.

Motivation:
Development dependencies (i.e., those only required for building, testing, or CI and not included in the released product) are already tracked by major package ecosystems (Nuget, NPM, Cargo, etc.) and are surfaced in their SBOM outputs. However, sbom-tool currently does not support emitting the DEV_DEPENDENCY_OF relationship type. As a result, SBOMs generated with sbom-tool do not fully represent the dependency graph and may mischaracterize development-only dependencies as runtime or production dependencies.

Benefits:

Accurate SBOMs: Ensures that SBOMs correctly distinguish between runtime and development dependencies per the SPDX 2.2.2 spec.

Better Security Validation: Allows our SBOM validation services to filter CVEs associated with development dependencies, reducing noise and more accurately highlighting OSS supply chain risks.

Ecosystem Alignment: Brings sbom-tool in line with the output of other major package managers and enables round-trip compatibility for dev dependency metadata.

Specification Reference:
From SPDX v2.2.2, Section 7.1:

"DEV_DEPENDENCY_OF indicates that the element is a development dependency of another element."

Request:

Add support for emitting DEV_DEPENDENCY_OF relationships in all SPDX 2.2 SBOMs generated by sbom-tool.

If possible, provide a way to programmatically flag which dependencies are considered development-only (for example, via config, CLI flag, or integration with package manager metadata).

Update documentation to describe expected output and guidance on use.

Impact:
Adopting this enhancement will help consumers of SBOMs generated by sbom-tool—especially those integrating with automated validation pipelines or vulnerability management—accurately assess the exposure surface for production builds, aligning with SSDF best practices for supply chain risk (PW.4.1, PW.4.4, RV.1.1, RV.1.2) and EO 14028 objectives.

Ref Feature: 2242407

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedWe are working on this and hope to release it into the product

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions