GitHub adds audit log tracking for Code Quality enablement

GitHub has expanded its audit logging capabilities for GitHub Code Quality. The platform now emits an audit log event whenever a user enables, disables, or modifies the settings for Code Quality on a repository.

This change introduces three new events to capture this history:

  • repo.code_quality_enabled: Records when Code Quality is turned on for a repository.
  • repo.code_quality_disabled: Records when Code Quality is turned off.
  • repo.code_quality_updated: Records when the configuration of an already-enabled repository is changed.

Each event captures the repository identifier, the actor who performed the action, and the timestamp. This provides a clear audit trail for compliance and governance purposes.

There is a direct implication for billing. Code Quality billing counts active committers on enabled repositories. With these new logs, organizations can now see exactly when a repository enters or leaves that billing scope, offering greater visibility into costs.

These events are available in both the organization audit log and the enterprise audit log. They can also be queried programmatically using the audit log API.

Availability: This feature is available on GitHub Enterprise Cloud, GitHub Enterprise Cloud with data residency, and GitHub Team.