注意
The implementation of this approval process can potentially cause some friction, so it's important to ensure that the team of security managers has adequate coverage to review dismissal requests regularly before proceeding.
Alert dismissal requests expire after 1 year, after which they must be resubmitted.
Configuring delegated dismissal for a repository
注意
If an organization owner configures delegated alert dismissal via an enforced security configuration, the settings can't be changed at the repository level.
-
On GitHub, navigate to the main page of the repository.
-
Under your repository name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the "Security and quality" section of the sidebar, click Advanced Security.
-
In the "Dependabot" section, next to "Prevent direct alert dismissals", click Enable.
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.
- Start creating or editing a custom security configuration. See 删除自定义安全配置.
- In the "Dependency scanning" section of your security configuration, set "Prevent direct alert dismissals" to Enabled.
- Click Save configuration.
- Apply the security configuration to repositories in your organization. See 删除自定义安全配置.
Configuring delegated dismissal for an enterprise
You must configure delegated dismissal for your enterprise using a custom security configuration. You can then apply the security configuration to all (or selected) repositories in your enterprise.
- Start creating or editing a custom security configuration. See 为企业创建自定义安全配置.
- In the "Dependency scanning" section of your security configuration, set "Prevent direct alert dismissals" to Enabled.
- Click Save configuration.
- Apply the security configuration to repositories in your enterprise. See 将自定义安全性配置应用于企业.
Next steps
Now that you have enabled delegated alert dismissal for Dependabot, you should regularly review alert dismissal requests to maintain an accurate alert count and unblock your developers. See 查看警报解除请求.