# Ensure Restrict Code Push and Merge Permissions to Authorized Users

- Source: https://support.icompaas.com/support/solutions/articles/62000235201-ensure-restrict-code-push-and-merge-permissions-to-authorized-users
- Section: [Solutions](https://support.icompaas.com/support/solutions) › [CIS GitHub Benchmark v1.0.0](https://support.icompaas.com/support/solutions/62000112695) › [CIS GitHub Benchmark v1.0.0](https://support.icompaas.com/support/solutions/folders/62000169264)
- Last updated: 2026-05-29
- Publisher: iCompaas, Inc. (https://www.icompaas.com)

**Profile Applicability:** **Level 1**

**Description:  
** Access to push new code or merge changes into protected branches must be limited to designated individuals or teams. This restriction ensures that only authorized personnel can modify critical parts of the codebase, helping maintain code integrity and security.

**Rationale**:  
 Limiting push and merge permissions reduces the risk of unauthorized, accidental, or malicious code changes. It enforces accountability, supports segregation of duties, and strengthens the overall security posture of the development lifecycle.

**Impact**:  
 **Pros**:

-   Enhances control over codebase changes.  
      
    
-   Reduces risk of unauthorized or harmful code being introduced.  
      
    
-   Supports compliance and audit requirements.  
      
    
-   Encourages responsible code ownership.  
      
    

**Cons**:

-   May slow down development if permissions are too restrictive.  
      
    
-   Requires regular review and management of access controls.  
      
    

**Default value:  
** By default, many repositories allow broad push and merge permissions to all contributors or administrators.

**Audit**:  
 Review repository and branch permission settings to confirm only authorized users or teams have push and merge rights. Check logs for unauthorized push or merge attempts.

**Remediation:  
** Implement role-based access controls restricting push and merge permissions. Regularly review and update access lists. Educate teams about permission policies and responsibilities.

**References**:

1.  GitHub Branch Protection and Access Control: [https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/about-protected-branches](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/about-protected-branches)
    
2.  GitLab Project Members and Permissions: [https://docs.gitlab.com/ee/user/permissions.html](https://docs.gitlab.com/ee/user/permissions.html)
    
3.  CIS Controls v8, Control 6 - Maintenance, Monitoring, and Analysis of Audit Logs: [https://www.cisecurity.org/controls/maintenance-monitoring-and-analysis-of-audit-l](https://www.cisecurity.org/controls/maintenance-monitoring-and-analysis-of-audit-logs/)

## 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.
