GitLab project Severitylow builtIn

Description

Projects should have empty_repo = false. An empty project (no commits) cannot run CI, cannot have a default branch, and likely indicates an abandoned or accidentally-created placeholder. Either populate it with an initial commit or delete it.

Recommendation

1. If the project is intended to be active, push an initial commit (README.md, .gitlab-ci.yml). 
2. If the project is unused, delete it via Settings > General > Advanced > Delete project.

Policy Rule

{
  "target": "GLProject",
  "if": {
    "allOf": [
      {
        "resource": "GLProject",
        "property": "EmptyRepo",
        "operator": "equals",
        "value": false
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}