管理 机密扫描警报
- 在 你的企业 上,导航到存储库的主页。 1. 在存储库名称下,单击“ 安全性”。 如果看不到“安全性”选项卡,请选择 下拉菜单并单击“安全性” 。
- 在左边栏的“漏洞警报”下,单击“Secret scanning”。
- 在“Secret scanning”下,单击要查看的警报。
- 若要消除警报,请选择“标记为”下拉菜单,然后单击原因以解决警报。
保护受到威胁的密码
只要密码被提交到仓库,便应视为受到威胁。 GitHub 建议对受到威胁的密码执行以下操作:
- 对于受到威胁的 GitHub personal access token,请删除受到威胁的令牌,创建新令牌,然后更新使用旧令牌的任何服务。 有关详细信息,请参阅“创建个人访问令牌”。
- 对于所有其他机密,请先确认提交到 GitHub AE 的机密是有效的。 如果有效,请创建新机密,更新使用旧机密的所有服务,然后删除旧机密。
配置 机密扫描警报 的通知
When a new secret is detected, GitHub AE notifies all users with access to security alerts for the repository according to their notification preferences. You will receive an email notification if:
- you are watching the repository.
- you have enabled notifications for "All Activity", or for custom "Security alerts" on the repository
You will also be notified if you are the author of the commit that contains the secret and you are not ignoring the repository.
有关详细信息,请参阅“管理存储库的安全和分析设置”和“为单个存储库配置监视设置”。
审核对机密扫描警报的响应
可以使用 GitHub 工具审核为响应secret scanning警报而执行的操作。 有关详细信息,请参阅“审核安全警报”。