Skip to content

Refresh security policies only when user is present in approvers

Sashi Kumar Kumaresan requested to merge sk/fix-refresh-worker into master

What does this MR do and why?

This MR adds an improvement to Security::RefreshProjectPoliciesWorker by not calling Security::ProcessScanResultPolicyWorker if the project's policies does not have user_approvers in YAML. This also adds a feature flag to skip the worker to mitigate incident: gitlab-com/gl-infra/production#17282 (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 Sashi Kumar Kumaresan

Merge request reports