Repository Branch Protection Evaluation

actionDescriptionSampleRule
repository_branch_protection_evaluation.disableBranch protections were disabled for the repository.YY
repository_branch_protection_evaluation.enableBranch protections were enabled for this repository.YN

repository_branch_protection_evaluation.disable

#
Category
repository-branch-protection-evaluation

Description

Branch protections were disabled for the repository.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000008,
  "repo_id": 9000336,
  "user_id": 9000337,
  "actor_id": 9000337,
  "created_at": 1784045046032.0,
  "business_id": 9000005,
  "actor_is_bot": false,
  "org": "example-org",
  "repo": "user/example-repo",
  "user": "user",
  "actor": "user",
  "action": "repository_branch_protection_evaluation.disable",
  "business": "example-business",
  "request_id": 9000338,
  "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ip-redacted Safari/537.36",
  "operation_type": "modify",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

Detection Rules #

Full rule details for this event, including ATT&CK technique mappings and native queries →

YARA-L #

repository_branch_protection_evaluation.enable

#
Category
repository-branch-protection-evaluation

Description

Branch protections were enabled for this repository.

Documented on GitHub's enterprise audit log reference.

Example Audit Log Entry #

{
  "org_id": 9000008,
  "repo_id": 9000336,
  "user_id": 9000337,
  "actor_id": 9000337,
  "created_at": 1784045087480.0,
  "business_id": 9000005,
  "actor_is_bot": false,
  "org": "example-org",
  "repo": "user/example-repo",
  "user": "user",
  "actor": "user",
  "action": "repository_branch_protection_evaluation.enable",
  "business": "example-business",
  "request_id": 9000339,
  "user_agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/ip-redacted Safari/537.36",
  "operation_type": "modify",
  "external_identity_nameid": "user",
  "external_identity_username": "user"
}

References #