Ensure to reset approvals on push

By default, an approval on a merge request remains in place, even if more changes will be added after the approval.

Risk Level: medium
Platform: Gitlab
Spectral Rule ID: GL-HRD001

REMEDIATION

If you want to remove all existing approvals on a merge request when more changes are added to it:

SaaS:

  1. Go to your project and select Settings > General.
  2. Expand Merge request (MR) approvals.
  3. Select the "Remove all approvals when commits are added to the source branch" checkbox.
  4. Select Save changes.

Read more: