Update UpdateSecurityPolicyDismissals to handle hash licenses

What does this MR do and why?

This MR fixes a bug in the UpdateSecurityPolicyDismissals. Previously, the code assumed license objects were Hashie::Mash with a .name method, but sometimes licenses are stored as hash data structures instead.

The fix uses hash syntax (license[:name]) to extract the license name and handle both cases properly.

This MR also adds a unit test to verify that when a license has an unknown name in hash format, the system correctly skips updating the policy dismissal rather than throwing a "NoMethodError".

References

logs(internal-only)

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports

Loading