Accessing your security log
The security log lists all actions performed within the last 90 days.
-
在任何页面的右上角,单击您的个人资料照片,然后单击 Settings(设置)。

-
In the user settings sidebar, click Security log.

Searching your security log
日志列出每个操作的以下信息:
- 执行操作的仓库
- 执行操作的用户
- 执行的操作内容
- 发生操作的国家/地区
- 操作发生的日期和时间
请注意,无法使用文本搜索条目。 但是,您可以使用各种过滤器构建搜索查询。 查询日志时使用的许多运算符,如 -、> 或 <,与在 GitHub Enterprise 上搜索时的格式相同。 更多信息请参阅“在 GitHub 上搜索”。
基于操作搜索
使用操作限定符将操作限于特定类型的操作。 例如:
operation:access查找其中资源被访问过的所有事件。operation:authentication查找其中执行了身份验证事件的所有事件。operation:create查找在其中创建了资源的所有事件。operation:modify查找在其中修改了现有资源的所有事件。operation:remove查找在其中删除的现有资源的所有事件。operation:restore查找在其中恢复了现有资源的所有事件。operation:transfer查找在其中转移了现有资源的所有事件。
基于仓库搜索
使用 repo 限定符将操作限于特定仓库。 例如:
repo:my-org/our-repo会找到在my-org组织的our-repo仓库中发生的所有事件。repo:my-org/our-repo repo:my-org/another-repo会找到在my-org组织的our-repo和another-repo仓库中发生的所有事件。-repo:my-org/not-this-repo会排除在my-org组织的not-this-repo仓库中发生的所有事件。
请注意,您必须在 repo 限定符中包含帐户名称;仅搜索 repo:our-repo 将不起作用。
基于用户搜索
actor 限定符可将事件范围限于执行操作的人员。 例如:
actor:octocat会找到octocat执行的所有事件。actor:octocat actor:hubot会找到octocat和hubot执行的所有事件。-actor:hubot会排除hubot执行的所有事件。
请注意,只能使用 GitHub Enterprise 用户名,而不是个人的真实姓名。
Search based on the action performed
| Category Name | Description |
|---|---|
oauth_access | Contains all activities related to OAuth 应用程序s you've connected with. |
profile_picture | Contains all activities related to your profile picture. |
project | Contains all activities related to project boards. |
public_key | Contains all activities related to your public SSH keys. |
repo | Contains all activities related to the repositories you own. |
team | Contains all activities related to teams you are a part of. |
two_factor_authentication | Contains all activities related to two-factor authentication. |
user | Contains all activities related to your account. |
A description of the events within these categories is listed below.
The oauth_access category
| Action | Description |
|---|---|
| create | Triggered when you grant access to an OAuth 应用程序. |
| destroy | Triggered when you revoke an OAuth 应用程序's access to your account. |
The profile_picture category
| Action | Description |
|---|---|
| update | Triggered when you set or update your profile picture. |
The project category
| Action | Description |
|---|---|
create | Triggered when a project board is created. |
rename | Triggered when a project board is renamed. |
update | Triggered when a project board is updated. |
delete | Triggered when a project board is deleted. |
link | Triggered when a repository is linked to a project board. |
unlink | Triggered when a repository is unlinked from a project board. |
project.access | Triggered when a project board's visibility is changed. |
update_user_permission | Triggered when an outside collaborator is added to or removed from a project board or has their permission level changed. |
The public_key category
| Action | Description |
|---|---|
| create | Triggered when you add a new public SSH key to your GitHub Enterprise account. |
| delete | Triggered when you remove a public SSH key to your GitHub Enterprise account. |
The repo category
| Action | Description |
|---|---|
| access | Triggered when you a repository you own is switched from "private" to "public" (or vice versa). |
| add_member | Triggered when a GitHub Enterprise user is given collaboration access to a repository. |
| add_topic | Triggered when a repository owner adds a topic to a repository. |
| archived | Triggered when a repository owner archives a repository. |
| config.disable_anonymous_git_access | Triggered when anonymous Git read access is disabled in a public repository. |
| config.enable_anonymous_git_access | Triggered when anonymous Git read access is enabled in a public repository. |
| config.lock_anonymous_git_access | Triggered when a repository's anonymous Git read access setting is locked. |
| config.unlock_anonymous_git_access | Triggered when a repository's anonymous Git read access setting is unlocked. |
| create | Triggered when a new repository is created. |
| destroy | Triggered when a repository is deleted. |
| remove_member | Triggered when a GitHub Enterprise user is removed from a repository as a collaborator. |
| remove_topic | Triggered when a repository owner removes a topic from a repository. |
| rename | Triggered when a repository is renamed. |
| transfer | Triggered when a repository is transferred. |
| transfer_start | Triggered when a repository transfer is about to occur. |
| unarchived | Triggered when a repository owner unarchives a repository. |
The team category
| Action | Description |
|---|---|
| add_member | Triggered when a member of an organization you belong to adds you to a team. |
| add_repository | Triggered when a team you are a member of is given control of a repository. |
| create | Triggered when a new team in an organization you belong to is created. |
| destroy | Triggered when a team you are a member of is deleted from the organization. |
| remove_member | Triggered when a member of an organization is removed from a team you are a member of. |
| remove_repository | Triggered when a repository is no longer under a team's control. |
The two_factor_authentication category
| Action | Description |
|---|---|
| enabled | Triggered when two-factor authentication is enabled. |
| disabled | Triggered when two-factor authentication is disabled. |
The user category
| Action | Description |
|---|---|
| add_email | Triggered when you add a new email address. |
| create | Triggered when you create a new user account. |
| remove_email | Triggered when you remove an email address. |
| rename | Triggered when you rename your account. |
| change_password | Triggered when you change your password. |
| forgot_password | Triggered when you ask for a password reset. |
| login | Triggered when you log in to your GitHub Enterprise Server instance. |
| failed_login | Triggered when you failed to log in successfully. |
| two_factor_requested | Triggered when GitHub Enterprise asks you for your two-factor authentication code. |
| show_private_contributions_count | Triggered when you publicize private contributions on your profile. |
| hide_private_contributions_count | Triggered when you hide private contributions on your profile. |
The user_status category
| Action | Description |
|---|---|
| update | Triggered when you set or change the status on your profile. For more information, see "Setting a status." |
| destroy | Triggered when you clear the status on your profile. |