# Ensure stale merge request approvals are dismissed when new commits are pushed

- Source: https://support.icompaas.com/support/solutions/articles/a_1789073193112341-ensure-stale-merge-request-approvals-are-dismissed-when-new-commits-are-pushed
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [Version Control System (VCS)](https://support.icompaas.com/support/solutions/c_1781179095087930) › [GitLab](https://support.icompaas.com/support/solutions/folders/f_178117912544158)
- Last updated: 2026-10-27
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

Description:

This check verifies that a GitLab project is configured to automatically remove existing merge request approvals whenever new commits are pushed to the source branch. Without this setting, an approval given on an earlier version of the code could remain valid even after the code has changed, meaning a reviewer's approval might no longer reflect what is actually about to be merged.

  

Note: This check requires a GitLab Premium or Ultimate plan. The setting it evaluates depends on a paid feature that isn’t available on the Free plan.On the Free plan, the setting doesn’t appear in the GitLab UI or API, so it can’t be configured. The check will show as Failed or Not applicable, regardless of how the rest of the group or project is set up.

  

Rationale:

Approvals are meant to certify that a specific version of the code has been reviewed and deemed acceptable. If new commits can be pushed after approval without resetting that approval, the merge request could be merged with unreviewed changes under the cover of an approval that applied to a different, earlier version of the code. Automatically dismissing stale approvals ensures that every review reflects the actual code being merged.

  

Impact:

-   Require reviewers to re-approve a merge request after any new commit is pushed to the source branch.
    
-   Increase the number of review cycles for merge requests that receive late changes.
    
-   Improve the accuracy and trustworthiness of merge request approvals.
    
-   Reduce the risk of unreviewed changes being merged under a previously granted approval.
    

  

Default Value:

Disabled By default, GitLab projects do not automatically reset approvals when new commits are pushed to a merge request's source branch. Default setting: reset\_approvals\_on\_push: false

  

Pre-Requisites:

-   Maintainer or Owner access to the project
    
-   An existing GitLab project
    

  

Test Plan:

1.  Sign in to GitLab at [https://gitlab.com](https://gitlab.com/).
    
2.  Navigate to the target project.
    
3.  Select Settings → Merge requests.
    
4.  Locate the Approval settings section.
    
5.  Verify that "Remove all approvals when commits are added to the source branch" is enabled.
    

Implementation Steps:

1.  Sign in to GitLab at [https://gitlab.com](https://gitlab.com/).
    
2.  Navigate to the target project.
    
3.  Select Settings → Merge requests.
    

4.  Locate the Approval settings section.
    
5.  Check "Remove all approvals when commits are added to the source branch".
    

6.  Click Save changes.
    

  

Backout Plan:

1.  Sign in to GitLab at [https://gitlab.com](https://gitlab.com/).
    
2.  Navigate to Settings → Merge requests.
    
3.  Locate the Approval settings section.
    
4.  Uncheck "Remove all approvals when commits are added to the source branch".
    
5.  Click Save changes.
    
6.  Confirm that project operations function as expected after the rollback.
    

  

Reference:

-   [Merge Request Approval Settings](https://docs.gitlab.com/user/project/merge_requests/approvals/settings/)
    
-   [Merge Request Approvals](https://docs.gitlab.com/user/project/merge_requests/approvals/)

## Related compliance guidance

- [SOC 2 compliance: a practical implementation guide for cloud-native SaaS teams](https://support.icompaas.com/compliance/soc-2-trust-services-criteria): Configuration checks like this one are the technical half of a SOC 2 / ISO 27001 programme — the guide shows where they fit, what else an auditor expects, and how to evidence them.
- [ISO/IEC 27001:2022 compliance: a practical implementation guide](https://support.icompaas.com/compliance/iso-27001-2022): ISO 27001 Annex A.8 (technological controls) is where cloud hardening evidence lands; the guide shows how to run the ISMS around it.
