Festo-se / cyclonedx-editor-validator

Tool for creating, modifying and validating CycloneDX SBOMs.
https://festo-se.github.io/cyclonedx-editor-validator/
GNU General Public License v3.0
18 stars 4 forks source link

`build-public` incorrectly deletes nested components #151

Closed mmarseu closed 3 months ago

mmarseu commented 6 months ago

The build-public command is meant to delete components marked as internal. It isn't documented what it does with non-internal components nested inside those internal components.

The tool should probably either:

  1. Delete nested components and remove them from the dependency tree the same way as internal components. This is likely the more logical choice, as users might expect components bundled inside internal components to also disappear from the SBOM.
  2. Leave nested components in the SBOM and move them up to the parent scope.

Instead, here is what actually happens:

We should choose one of the options above, implement it and make it explicit in the documentation.