dependency-track icon indicating copy to clipboard operation
dependency-track copied to clipboard

Please add support for component "scope" parameter

Open troy256 opened this issue 2 years ago • 0 comments

Current Behavior

When adding/editing components in DTrack, there is no ability to set a "scope" parameter. In the CycloneDX BOM format this can be set to required, optional or excluded. Without this there is no way to flag a dependency as something that is not shipped, such as runtime or development dependencies.

Proposed Behavior

I suggest implementing functionality within DTrack that recognizes and utilizes the "scope" parameter allowed in the JSON spec. This would allow us to list non-required dependencies and flag them appropriately. It will improve the accuracy of vulnerability analysis by focusing on shipping component and better align DTrack with the CycloneDX specification.

Ref: https://cyclonedx.org/docs/1.5/json/#components_items_scope

Checklist

troy256 avatar Jan 16 '24 18:01 troy256