Skip to content

Sanitize given scan types before querying the security_scans

Mehmet Emin INAC requested to merge add_generic_scan_type_to_security_scan into master

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.

Edited by Mehmet Emin INAC

Merge request reports

Loading