Sanitize given scan types before querying the security_scans
What does this MR do and why?
After migrating the Rails version 6.1.4.1, we've found a regression in one of our model scopes that was causing exceptions if an invalid enum key is provided. This commit fixes that regression.
Related to #342462 (closed).
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.
Edited by Mehmet Emin INAC