Deduplicate SBOMs in static reachability output
What does this MR do and why?
We currently create duplicate outputs when running Static Reachability Analysis on the same SBOM with multiple enrichers. See Static Reachability multiple languages cause be... (gitlab-org/gitlab#557556 - closed).
This MR checks whether an SBOM object already exists in the enrichers output list before adding it. Since SBOMs are passed by reference, an SBOM that was already added to the list may later be modified again without having to re-add it.
Related issues
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
| Before | After |
|---|---|
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.