GitHub organization Severityhigh builtIn

Description

Every SAML SSO credential authorization should be associated with a known organization member's login. An empty Login field indicates an orphaned credential (e.g., the user was removed from the org but the credential authorization was not revoked) - a common GitHub Enterprise Cloud audit finding. Such credentials should be revoked.

Recommandation

1. Go to Organization Settings -> Authentication security -> SAML single sign-on. 
2. Review 'Authorized credentials' and revoke any belonging to users no longer in the organization. 
3. Document the revocation in the audit trail.

Règle de politique

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