GitLab organization Severitymedium builtIn

Description

Top-level groups should restrict who can create new projects to Maintainer or Owner role. Setting project_creation_level = maintainer prevents arbitrary developers from creating ungoverned projects (which then escape policy assignment, default-branch protection, and CI/CD scanning baselines). Allowed values: noone | maintainer | developer.

Recommendation

1. Go to your top-level Group Settings > General. 
2. Expand the Permissions and group features section. 
3. Under Allowed to create projects, choose Maintainers or No one. 
4. Save changes.

Policy Rule

{
  "target": "GLGroup",
  "if": {
    "allOf": [
      {
        "resource": "GLGroup",
        "property": "ProjectCreationLevel",
        "operator": "equals",
        "value": "maintainer"
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}