Skip creation of vulnerabilities from empty occurences batch
What does this MR do and why?
Skip creation of vulnerabilities from empty occurences batch
If an entire batch of components is unaffected, we should skip the vuln creation step altogether to avoid receiving an error response. The creation service expects a slice of affected components with a minimum size of 1. This fixes the scanner to fulfill that contract.
See thread started in #427424 (comment 1654169733)
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
N/A
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
Remove L103 from the advisory scanner, and observe that the spec now fails.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.