GitLab project Severitylow builtIn

Description

Projects should have migrated off the legacy master default branch to main (modern GitLab convention since 2021). Lingering master branches indicate either a pre-2021 project that hasn't been updated, or a fork from a legacy upstream — both warrant a migration plan. Less strict than GL_Project_DefaultBranch_Should_Be_Main (which also rejects develop, trunk, etc.).

Recommendation

1. In a clone: git branch -m master main; git push -u origin main; git push origin --delete master. 
2. In GitLab: Settings > Repository > Default branch -> set to main. 
3. Update CI/CD references and protected branch rules.

Policy Rule

{
  "target": "GLProject",
  "if": {
    "allOf": [
      {
        "resource": "GLProject",
        "property": "DefaultBranch",
        "operator": "notEquals",
        "value": "master"
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}