Skip to main content

Enabling delegated alert dismissal for secret scanning

You can use delegated alert dismissal to control who can dismiss an alert found by secret scanning.

谁可以使用此功能?

Organization owners, security managers, and repository administrators can enable delegated alert dismissals. Once enabled, organization owners and security managers can dismiss alerts.

About enabling delegated alert dismissal

Note

The ability to use delegated alert dismissal for secret scanning is currently in 公共预览版 and subject to change.

Delegated alert dismissal lets you restrict which users can directly dismiss an alert. When enabled, users attempting to dismiss an alert will instead create a request for dismissal. When this happens, security managers and organization owners will be notified via email so they can review the request and approve it or deny it. The alert will only be dismissed if the dismissal request is approved; otherwise, the alert will remain open.

When you enable this feature, only security managers and organization owners will be able to approve or deny dismissal requests for alerts. This might create friction and you should ensure to have sufficient coverage in your security managers team before you start.

In addition, dismissal request emails are sent to all organization owners and security managers. Be sure to review these lists periodically to ensure that these are the correct people to take action on these requests.

To learn more about the security manager role, see 管理组织中的安全管理员.

Configuring delegated dismissal for a repository

Note

If an organization owner configures delegated alert dismissal via an enforced security configuration, the settings can't be changed at the repository level.

  1. 在 GitHub 上,导航到存储库的主页面。

  2. 在存储库名称下,单击 “设置”。 如果看不到“设置”选项卡,请选择“”下拉菜单,然后单击“设置”。

    存储库标头的屏幕截图,其中显示了选项卡。 “设置”选项卡以深橙色边框突出显示。

  3. 在边栏的“Security”部分中,单击“Code security”****。

  4. 在“Code security”下,找到“GitHub Advanced Security”。

  5. Under "Secret scanning", toggle the option "Prevent direct alert dismissals".

Configuring delegated dismissal for an organization

You must configure delegated dismissal for your organization using a custom security configuration. You can then apply the security configuration to all (or selected) repositories in your organization.

  1. Create a new custom security configuration, or edit an existing one. See 删除自定义安全配置.
  2. When creating the custom security configuration, under "Secret scanning", ensure that the dropdown menus for "Alerts" and "Prevent direct alert dismissals" are set to Enabled.
  3. Click Save configuration.
  4. Apply the security configuration to all (or selected) repositories in your organization. See 删除自定义安全配置.

To learn more about security configurations, see 关于批量启用安全功能.