GitHub organization Severitymedium builtIn

Description

Every organization member record should carry a non-empty login. Members without logins are typically a result of stale data, deleted GitHub accounts that were not cleaned up, or in-flight membership changes. Such records should be removed from the organization.

Recommendation

1. Go to Organization -> People. 
2. Identify any rows with missing or anonymized usernames. 
3. Remove them from the organization.

Policy Rule

{
  "target": "GHOrganizationMember",
  "if": {
    "allOf": [
      {
        "resource": "GHOrganizationMember",
        "property": "Login",
        "operator": "notEquals",
        "value": ""
      }
    ]
  },
  "then": {
    "effect": "Audit"
  }
}