GitLab project Severitymedium builtIn

Description

Projects with import_status = 'failed' have an incomplete import from an external source (GitHub, Bitbucket, Subversion, etc.) and may be missing branches, tags, issues, or merge requests. They should either complete the import or be deleted to prevent users mistaking them for the source of truth.

Recommandation

1. Go to project Settings > General > Advanced > Remove project (if the failed import is unwanted). 
2. Or re-import via the GitLab importer UI/API to retry, then verify import_status = 'finished'.

Règle de politique

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