Security gates within MRs - Sync security report_approvers to pipeline security reports

Merged Lucas Charles requested to merge 9928-add-report_approver-to-approval_rules into master

What does this MR do?

  • Add SyncReportApproverApprovalRules for copying project approval rules to merge requests (and deleting old)
  • Add SyncSecurityReportsToReportApprovalRules for conditionally decrementing required_approvals to zero

This also includes some shims to the ApprovalRuleLike logic ensuring compatibility between the existing ApprovalProjectRule and ApprovalMergeRequestRule types

One of series of MRs to fully address #9928 (closed).

General checklist

Edited by Lucas Charles