Skip to main content

Reviewing the audit log for your organization

The audit log allows organization admins to quickly review the actions performed by members of your organization. It includes details such as who performed the action, what the action was, and when it was performed.

Accessing the audit log

The audit log lists events triggered by activities that affect your organization within the current month and previous six months. Only owners can access an organization's audit log.

De forma predeterminada, solo se muestran los eventos de los últimos tres meses. Para ver eventos anteriores, debe especificar un intervalo de fechas con el parámetro created. Para más información, vea "Descripción de la sintaxis de búsqueda".

  1. En la esquina superior derecha de GitHub AE, haga clic en la foto de perfil y luego en Your organizations. Opción Your organizations (Sus organizaciones) en el menú del perfil

  2. Junto a la organización, haga clic en Settings. El botón de configuración

  3. In the Settings sidebar, click Audit log. Org audit log settings in sidebar

Searching the audit log

El nombre de cada entrada del registro de auditoría se compone del calificador de objeto o categoría action, seguido de un tipo de operación. Por ejemplo, la entrada repo.create hace referencia a la operación create de la categoría repo.

Cada entrada del registro de auditoría muestra información vigente acerca de un evento, como:

  • La empresa u organización en la que se ha realizado una acción
  • El usuario (actor) que ha realizado la acción
  • El usuario afectado por la acción
  • En qué repositorio se realizó una acción
  • La acción que se realizó
  • En qué país se realizó la acción
  • Fecha y hora en que se produjo la acción

Nota que no puedes buscar entradas utilizando texto. Sin embargo, puedes construir consultas de búsqueda utilizando una variedad de filtros. Muchos operadores que se utilizan cuando se consulta el registro, tales como -, > o <, coinciden con el mismo formato de búsqueda en GitHub AE. Para obtener más información, vea "Buscar en GitHub."

Búsqueda basada en la operación

Use el calificador operation para limitar las acciones a tipos específicos de operaciones. Por ejemplo:

  • operation:access busca todos los eventos en los que se ha accedido a un recurso.
  • operation:authentication busca todos los eventos en los que se ha realizado un evento de autenticación.
  • operation:create busca todos los eventos en los que se ha creado un recurso.
  • operation:modify busca todos los eventos en los que se ha modificado un recurso existente.
  • operation:remove busca todos los eventos en los que se ha quitado un recurso existente.
  • operation:restore busca todos los eventos en los que se ha restaurado un recurso existente.
  • operation:transfer busca todos los eventos en los que se ha transferido un recurso existente.

Búsqueda basada en el repositorio

Use el calificador repo para limitar las acciones a un repositorio específico. Por ejemplo:

  • repo:my-org/our-repo busca todos los eventos que se han producido para el repositorio our-repo de la organización my-org.
  • repo:my-org/our-repo repo:my-org/another-repo busca todos los eventos que se han producido para los repositorios our-repo y another-repo de la organización my-org.
  • -repo:my-org/not-this-repo excluye todos los eventos que se han producido para el repositorio not-this-repo de la organización my-org.

Tenga en cuenta que debe incluir el nombre de la cuenta en el calificador repo; la búsqueda de solo repo:our-repo no funcionará.

Búsqueda basada en el usuario

El calificador actor puede incluir eventos en función de quién haya realizado la acción. Por ejemplo:

  • actor:octocat busca todos los eventos realizados por octocat.
  • actor:octocat actor:hubot busca todos los eventos realizados por octocat y hubot.
  • -actor:hubot excluye todos los eventos realizados por hubot.

Ten en cuenta que solo puedes utilizar un nombre de usuario GitHub AE, no el nombre real de una persona.

Search based on the action performed

To search for specific events, use the action qualifier in your query. Actions listed in the audit log are grouped within the following categories:

Category nameDescription
dependabot_alertsContains organization-level configuration activities for Dependabot alerts in existing repositories. For more information, see "About Dependabot alerts."
dependabot_alerts_new_reposContains organization-level configuration activities for Dependabot alerts in new repositories created in the organization.
discussion_postContains all activities related to discussions posted to a team page.
discussion_post_replyContains all activities related to replies to discussions posted to a team page.
hookContains all activities related to webhooks.
integration_installationContains activities related to integrations installed in an account.
integration_installation_requestContains all activities related to organization member requests for owners to approve integrations for use in the organization.
ip_allow_listContains activities related to enabling or disabling the IP allow list for an organization.
ip_allow_list_entryContains activities related to the creation, deletion, and editing of an IP allow list entry for an organization.
issueContains activities related to deleting an issue.
orgContains activities related to organization membership.
organization_default_labelContains all activities related to default labels for repositories in your organization.
oauth_applicationContains all activities related to OAuth Apps.
packagesContains all activities related to GitHub Packages.
profile_pictureContains all activities related to your organization's profile picture.
projectContains all activities related to project boards.
protected_branchContains all activities related to protected branches.
repoContains activities related to the repositories owned by your organization.
repository_secret_scanningContains repository-level activities related to secret scanning. For more information, see "About secret scanning."
repository_vulnerability_alertContains all activities related to Dependabot alerts.
secret_scanningContains organization-level configuration activities for secret scanning in existing repositories. For more information, see "About secret scanning."
secret_scanning_new_reposContains organization-level configuration activities for secret scanning for new repositories created in the organization.
teamContains all activities related to teams in your organization.
team_discussionsContains activities related to managing team discussions for an organization.
workflowsContains activities related to GitHub Actions workflows.

You can search for specific sets of actions using these terms. For example:

  • action:team finds all events grouped within the team category.
  • -action:hook excludes all events in the webhook category.

Each category has a set of associated actions that you can filter on. For example:

  • action:team.create finds all events where a team was created.
  • -action:hook.events_changed excludes all events where the events on a webhook have been altered.

Search based on time of action

Use the created qualifier to filter events in the audit log based on when they occurred. El formato de fecha debe seguir el estándar ISO8601, que es YYYY-MM-DD (año-mes-día). También puede agregar información de tiempo opcional THH:MM:SS+00:00 después de la fecha, para buscar por hora, minuto y segundo. Esto es, T, seguido de HH:MM:SS (hora-minutos-segundos) y una diferencia horaria con UTC (+00:00).

Cuando buscas una fecha, puedes utilizar los calificadores de mayor qué, menor qué y rango para filtrar aún más los resultados. Para más información, vea "Descripción de la sintaxis de búsqueda".

For example:

  • created:2014-07-08 finds all events that occurred on July 8th, 2014.
  • created:>=2014-07-08 finds all events that occurred on or after July 8th, 2014.
  • created:<=2014-07-08 finds all events that occurred on or before July 8th, 2014.
  • created:2014-07-01..2014-07-31 finds all events that occurred in the month of July 2014.

Note: The audit log contains data for the current month and every day of the previous six months.

Search based on location

Using the qualifier country, you can filter events in the audit log based on the originating country. You can use a country's two-letter short code or its full name. Keep in mind that countries with spaces in their name will need to be wrapped in quotation marks. For example:

  • country:de finds all events that occurred in Germany.
  • country:Mexico finds all events that occurred in Mexico.
  • country:"United States" all finds events that occurred in the United States.

Using the audit log API

You can interact with the audit log using the GraphQL API.

To ensure your intellectual property is secure, and you maintain compliance for your organization, you can use the audit log GraphQL API to keep copies of your audit log data and monitor:

  • Acceso a la configuración de la organización o el repositorio
  • Cambios en los permisos
  • Usuarios agregados o quitados de una organización, un repositorio o un equipo
  • Usuarios ascendidos a administradores
  • Cambios a los permisos de una GitHub App

The GraphQL response can include data for up to 90 to 120 days.

For example, you can make a GraphQL request to see all the new organization members added to your organization. For more information, see the "GraphQL API Audit Log."

Audit log actions

An overview of some of the most common actions that are recorded as events in the audit log.

business category actions

ActionDescription
set_actions_retention_limitTriggered when the retention period for GitHub Actions artifacts and logs is changed for an enterprise. For more information, see "Enforcing policies for GitHub Actions in your enterprise."

dependabot_alerts category actions

ActionDescription
disableTriggered when an organization owner disables Dependabot alerts for all existing repositories. For more information, see "Managing security and analysis settings for your organization."
enableTriggered when an organization owner enables Dependabot alerts for all existing repositories.

dependabot_alerts_new_repos category actions

ActionDescription
disableTriggered when an organization owner disables Dependabot alerts for all new repositories. For more information, see "Managing security and analysis settings for your organization."
enableTriggered when an organization owner enables Dependabot alerts for all new repositories.

discussion_post category actions

ActionDescription
updateTriggered when a team discussion post is edited.
destroyTriggered when a team discussion post is deleted.

discussion_post_reply category actions

ActionDescription
updateTriggered when a reply to a team discussion post is edited.
destroyTriggered when a reply to a team discussion post is deleted.

external_group category actions

AcciónDescripción
external_group.deleteSe activa cuando se borra tu grupo de Okta. Para obtener más información, consulte "Asignación de grupos de Okta a equipos".
external_group.linkSe activa cuando se mapea tu grupo de Okta en tu equipo de GitHub AE. Para obtener más información, consulte "Asignación de grupos de Okta a equipos".
external_group.provisionSe activa cuando tu grupo de Okta se mapea a tu equipo en GitHub AE. Para obtener más información, consulte "Asignación de grupos de Okta a equipos".
external_group.unlinkSe activa cuando tu grupo de Okta se deja de mapear desde tu equipo de GitHub AE. Para obtener más información, consulte "Asignación de grupos de Okta a equipos".
external_group.updateSe activa cuando se actualizan los ajustes de tu grupo de Okta. Para obtener más información, consulte "Asignación de grupos de Okta a equipos".

external_identity category actions

AcciónDescripción
external_identity.deprovisionSe activa cuando se elimina a un usuario de tu grupo de Okta y este se desaprovisiona subsecuentemente de GitHub AE. Para obtener más información, consulta "Asignación de grupos de Okta a equipos".
external_identity.provisionSe activa cuando se agrega a un usuario de Okta a tu grupo de Okta y este se aprovisiona subsecuentemente al equipo mapeado en GitHub AE. Para obtener más información, consulta "Asignación de grupos de Okta a equipos".
external_identity.updateSe activa cuando se actualizan los ajustes de un usuario de Okta. Para obtener más información, consulta "Asignación de grupos de Okta a equipos".

hook category actions

ActionDescription
createTriggered when a new hook was added to a repository owned by your organization.
config_changedTriggered when an existing hook has its configuration altered.
destroyTriggered when an existing hook was removed from a repository.
events_changedTriggered when the events on a hook have been altered.

integration_installation category actions

ActionDescription
contact_email_changedA contact email for an integration was changed.
createAn integration was installed.
destroyAn integration was uninstalled.
repositories_addedRepositories were added to an integration.
repositories_removedRepositories were removed from an integration.
version_updatedPermissions for an integration were updated.

integration_installation_request category actions

ActionDescription
createTriggered when an organization member requests that an organization owner install an integration for use in the organization.
closeTriggered when a request to install an integration for use in an organization is either approved or denied by an organization owner, or canceled by the organization member who opened the request.

ip_allow_list category actions

ActionDescription
enableTriggered when an IP allow list was enabled for an organization.
disableTriggered when an IP allow list was disabled for an organization.
enable_for_installed_appsTriggered when an IP allow list was enabled for installed GitHub Apps.
disable_for_installed_appsTriggered when an IP allow list was disabled for installed GitHub Apps.

ip_allow_list_entry category actions

ActionDescription
createTriggered when an IP address was added to an IP allow list.
updateTriggered when an IP address or its description was changed.
destroyTriggered when an IP address was deleted from an IP allow list.

issue category actions

ActionDescription
destroyTriggered when an organization owner or someone with admin permissions in a repository deletes an issue from an organization-owned repository.

oauth_application category actions

ActionDescription
createTriggered when a new OAuth App is created.
destroyTriggered when an existing OAuth App is deleted.
reset_secretTriggered when an OAuth App's client secret is reset.
revoke_tokensTriggered when an OAuth App's user tokens are revoked.
transferTriggered when an existing OAuth App is transferred to a new organization.

org category actions

ActionDescription
add_memberTriggered when a user joins an organization.
advanced_security_policy_selected_member_disabledTriggered when an enterprise owner prevents GitHub Advanced Security features from being enabled for repositories owned by the organization. Para más información, vea "Aplicación de directivas para Advanced Security en la empresa".
advanced_security_policy_selected_member_enabledTriggered when an enterprise owner allows GitHub Advanced Security features to be enabled for repositories owned by the organization. Para más información, vea "Aplicación de directivas para Advanced Security en la empresa".
disable_member_team_creation_permissionTriggered when an organization owner limits team creation to owners. For more information, see "Setting team creation permissions in your organization."
enable_member_team_creation_permissionTriggered when an organization owner allows members to create teams. For more information, see "Setting team creation permissions in your organization."
register_self_hosted_runnerTriggered when a new self-hosted runner is registered. For more information, see "Adding a self-hosted runner to an organization."
remove_actions_secretTriggered when a GitHub Actions secret is removed.
remove_memberTriggered when an owner removes a member from an organization. Also triggered when an organization member removes themselves from an organization.
remove_outside_collaboratorTriggered when an owner removes an outside collaborator from an organization.
remove_self_hosted_runnerTriggered when a self-hosted runner is removed. For more information, see "Removing a runner from an organization."
runner_group_createdTriggered when a self-hosted runner group is created. For more information, see "Creating a self-hosted runner group for an organization."
runner_group_removedTriggered when a self-hosted runner group is removed. For more information, see "Removing a self-hosted runner group."
runner_group_updatedTriggered when the configuration of a self-hosted runner group is changed. For more information, see "Changing the access policy of a self-hosted runner group."
runner_group_runners_addedTriggered when a self-hosted runner is added to a group. For more information, see Moving a self-hosted runner to a group.
runner_group_runner_removedTriggered when the REST API is used to remove a self-hosted runner from a group. For more information, see "Remove a self-hosted runner from a group for an organization."
runner_group_runners_updatedTriggered when a runner group's list of members is updated. For more information, see "Set self-hosted runners in a group for an organization."
self_hosted_runner_onlineTriggered when the runner application is started. Can only be viewed using the REST API; not visible in the UI or JSON/CSV export. For more information, see "Checking the status of a self-hosted runner."
self_hosted_runner_offlineTriggered when the runner application is stopped. Can only be viewed using the REST API; not visible in the UI or JSON/CSV export. For more information, see "Checking the status of a self-hosted runner."
set_actions_retention_limitTriggered when the retention period for GitHub Actions artifacts and logs is changed. For more information, see "Enforcing policies for GitHub Actions in your enterprise."
update_new_repository_default_branch_settingTriggered when an owner changes the name of the default branch for new repositories in the organization. For more information, see "Managing the default branch name for repositories in your organization."
update_default_repository_permissionTriggered when an owner changes the default repository permission level for organization members.
update_memberTriggered when an owner changes a person's role from owner to member or member to owner.
update_member_repository_creation_permissionTriggered when an owner changes the create repository permission for organization members.

organization_default_label category actions

ActionDescription
createTriggered when a default label is created.
updateTriggered when a default label is edited.
destroyTriggered when a default label is deleted.

packages category actions

ActionDescription
package_version_publishedTriggered when a package version is published.
package_version_deletedTriggered when a specific package version is deleted. For more information, see "Deleting and restoring a package."
package_deletedTriggered when an entire package is deleted. For more information, see "Deleting and restoring a package."
package_version_restoredTriggered when a specific package version is deleted. For more information, see "Deleting and restoring a package."
package_restoredTriggered when an entire package is restored. For more information, see "Deleting and restoring a package."

profile_picture category actions

ActionDescription
updateTriggered when you set or update your organization's profile picture.

project category actions

ActionDescription
createTriggered when a project board is created.
linkTriggered when a repository is linked to a project board.
renameTriggered when a project board is renamed.
updateTriggered when a project board is updated.
deleteTriggered when a project board is deleted.
unlinkTriggered when a repository is unlinked from a project board.
update_org_permissionTriggered when the base-level permission for all organization members is changed or removed.
update_team_permissionTriggered when a team's project board permission level is changed or when a team is added or removed from a project board.
update_user_permissionTriggered when an organization member or outside collaborator is added to or removed from a project board or has their permission level changed.

protected_branch category actions

ActionDescription
create Triggered when branch protection is enabled on a branch.
destroyTriggered when branch protection is disabled on a branch.
update_admin_enforced Triggered when branch protection is enforced for repository administrators.
update_require_code_owner_review Triggered when enforcement of required Code Owner review is updated on a branch.
dismiss_stale_reviews Triggered when enforcement of dismissing stale pull requests is updated on a branch.
update_signature_requirement_enforcement_level Triggered when enforcement of required commit signing is updated on a branch.
update_pull_request_reviews_enforcement_level Triggered when enforcement of required pull request reviews is updated on a branch. Can be one of 0(deactivated), 1(non-admins), 2(everyone).
update_required_status_checks_enforcement_level Triggered when enforcement of required status checks is updated on a branch.
update_strict_required_status_checks_policyTriggered when the requirement for a branch to be up to date before merging is changed.
rejected_ref_update Triggered when a branch update attempt is rejected.
policy_override Triggered when a branch protection requirement is overridden by a repository administrator.
update_allow_force_pushes_enforcement_level Triggered when force pushes are enabled or disabled for a protected branch.
update_allow_deletions_enforcement_level Triggered when branch deletion is enabled or disabled for a protected branch.
update_linear_history_requirement_enforcement_level Triggered when required linear commit history is enabled or disabled for a protected branch.

pull_request category actions

ActionDescription
createTriggered when a pull request is created.
closeTriggered when a pull request is closed without being merged.
reopenTriggered when a pull request is reopened after previously being closed.
mergeTriggered when a pull request is merged.
indirect_mergeTriggered when a pull request is considered merged because its commits were merged into the target branch.
ready_for_reviewTriggered when a pull request is marked as ready for review.
converted_to_draftTriggered when a pull request is converted to a draft.
create_review_requestTriggered when a review is requested.
remove_review_requestTriggered when a review request is removed.

pull_request_review category actions

ActionDescription
submitTriggered when a review is submitted.
dismissTriggered when a review is dismissed.
deleteTriggered when a review is deleted.

pull_request_review_comment category actions

ActionDescription
createTriggered when a review comment is added.
updateTriggered when a review comment is changed.
deleteTriggered when a review comment is deleted.

repo category actions

ActionDescription
accessTriggered when a user changes the visibility of a repository in the organization.
actions_enabledTriggered when GitHub Actions is enabled for a repository. Can be viewed using the UI. This event is not included when you access the audit log using the REST API. For more information, see "Using the REST API."
add_memberTriggered when a user accepts an invitation to have collaboration access to a repository.
add_topicTriggered when a repository admin adds a topic to a repository.
advanced_security_disabledTriggered when a repository administrator disables GitHub Advanced Security features for the repository. For more information, see "Managing security and analysis settings for your repository."
advanced_security_enabledTriggered when a repository administrator enables GitHub Advanced Security features for the repository. For more information, see "Managing security and analysis settings for your repository.".
archivedTriggered when a repository admin archives a repository.
createTriggered when a new repository is created.
destroyTriggered when a repository is deleted.
enableTriggered when a repository is re-enabled.
remove_memberTriggered when a user is removed from a repository as a collaborator.
register_self_hosted_runnerTriggered when a new self-hosted runner is registered. For more information, see "Adding a self-hosted runner to a repository."
remove_self_hosted_runnerTriggered when a self-hosted runner is removed. For more information, see "Removing a runner from a repository."
remove_topicTriggered when a repository admin removes a topic from a repository.
renameTriggered when a repository is renamed.
self_hosted_runner_onlineTriggered when the runner application is started. Can only be viewed using the REST API; not visible in the UI or JSON/CSV export. For more information, see "Checking the status of a self-hosted runner."
self_hosted_runner_offlineTriggered when the runner application is stopped. Can only be viewed using the REST API; not visible in the UI or JSON/CSV export. For more information, see "Checking the status of a self-hosted runner."
set_actions_retention_limitTriggered when the retention period for GitHub Actions artifacts and logs is changed. For more information, see "Managing GitHub Actions settings for a repository."
staff_unlockTriggered when an enterprise owner or Soporte de GitHub (with permission from a repository administrator) temporarily unlocked the repository. The visibility of the repository isn't changed.
transferTriggered when a repository is transferred.
transfer_startTriggered when a repository transfer is about to occur.
unarchivedTriggered when a repository admin unarchives a repository.

repository_secret_scanning category actions

ActionDescription
disableTriggered when a repository owner or person with admin access to the repository disables secret scanning for a repository. For more information, see "About secret scanning."
enableTriggered when a repository owner or person with admin access to the repository enables secret scanning for a repository.

repository_vulnerability_alert category actions

ActionDescription
createTriggered when GitHub AE creates a Dependabot alert for a repository that uses a vulnerable dependency. For more information, see "About Dependabot alerts."
dismissTriggered when an organization owner or person with admin access to the repository dismisses a Dependabot alert about a vulnerable dependency.
resolveTriggered when someone with write access to a repository pushes changes to update and resolve a vulnerability in a project dependency.

secret_scanning category actions

ActionDescription
disableTriggered when an organization owner disables secret scanning for all existing repositories. For more information, see "About secret scanning."
enableTriggered when an organization owner enables secret scanning for all existing repositories.

secret_scanning_new_repos category actions

ActionDescription
disableTriggered when an organization owner disables secret scanning for all new repositories. For more information, see "About secret scanning."
enableTriggered when an organization owner enables secret scanning for all new repositories.

team category actions

ActionDescription
add_memberTriggered when a member of an organization is added to a team.
add_repositoryTriggered when a team is given control of a repository.
change_parent_teamTriggered when a child team is created or a child team's parent is changed.
change_privacyTriggered when a team's privacy level is changed.
createTriggered when a new team is created.
demote_maintainerTriggered when a user was demoted from a team maintainer to a team member. For more information, see "Assigning the team maintainer role to a team member."
destroyTriggered when a team is deleted from the organization.
team.promote_maintainerTriggered when a user was promoted from a team member to a team maintainer. For more information, see "Assigning the team maintainer role to a team member."
remove_memberTriggered when a member of an organization is removed from a team.
remove_repositoryTriggered when a repository is no longer under a team's control.

team_discussions category actions

ActionDescription
disableTriggered when an organization owner disables team discussions for an organization. For more information, see "Disabling team discussions for your organization."
enableTriggered when an organization owner enables team discussions for an organization.

workflows category actions

AcciónDescripción
cancel_workflow_runSe activa cuando se cancela una ejecución de flujo de trabajo. Para obtener más información, vea "Cancelar un flujo de trabajo".
completed_workflow_runSe desencadena cuando el estado de un flujo de trabajo cambia a completed. Solo se puede visualizar utilizando la API de REST; no se puede visualizar en la IU ni en la exportación de JSON/CSV. Para más información, vea "Visualización del historial de ejecución de flujos de trabajo".
created_workflow_runSe activa cuando se crea una ejecución de flujo de trabajo. Solo se puede visualizar utilizando la API de REST; no se puede visualizar en la IU ni en la exportación de JSON/CSV. Para obtener más información, vea "Creación de un flujo de trabajo de ejemplo".
delete_workflow_runSe activa cuando se borra una ejecución de flujo de trabajo. Para más información, vea "Eliminación de una ejecución de flujo de trabajo".
disable_workflowSe activa cuando se inhabilita un flujo de trabajo.
enable_workflowSe desencadena cuando se habilita un flujo de trabajo después de que se deshabilitara mediante disable_workflow.
rerun_workflow_runSe activa cuando se vuelve a ejecutar una ejecución de flujo de trabajo. Para obtener más información, vea "Volver a ejecutar un flujo de trabajo".
prepared_workflow_jobSe activa cuando se inicia un job de flujo de trabajo. Incluye la lista de secretos que se proporcionaron al job. Solo puede verse utilizando la API de REST. No es visible en la interfaz web de GitHub ni se incluye en la exportación de JSON/CSV. Para más información, vea "Eventos que desencadenan flujos de trabajo".
approve_workflow_jobSe activa cuando se aprueba el job de un flujo de trabajo. Para más información, vea "Revisión de implementaciones".
reject_workflow_jobSe activa cuando se rechaza el job de un flujo de trabajo. Para más información, vea "Revisión de implementaciones".

Further reading