GitHub organization Severityhigh builtIn

Description

Every SAML SSO credential authorization records the credential kind (one of 'personal access token', 'SSH key', or 'GitHub app'). A missing or blank credential type indicates an unrecognized credential class that bypasses standard auditing - typically a GitHub API change or a partially-migrated credential. Such records require manual review.

Recommendation

1. Go to Organization Settings -> Authentication security -> SAML single sign-on -> Authorized credentials. 
2. For credentials with an unknown type, contact the user and confirm they are still in active use. 
3. Revoke unrecognized credential types.

Policy Rule

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