
Explanation:
Box 1: Prevent the repository administrators from managing secret scanning To solve this problem, you should prevent the repository administrators from managing secret scanning.
Enforces Compliance: Preventing local administrators from disabling security features stops them from creating temporary, unsafe workarounds for developers.
Centralizes Control: GitHub Enterprise Server allows enterprise or organization owners to enforce policies globally.
Maintains Security Baseline: Locking the setting ensures that
Box 2: Enable delegated alert dismissal for secret scanning
To resolve this problem, you must configure Delegated Alert Dismissal for secret scanning. This feature forces non-security users to submit a dismissal request instead of bypassing or directly closing an alert, requiring a mandatory review by authorized stakeholders.
Note:
Create Organization-Level Security Configurations
Enforcing this behavior at the organization or enterprise level ensures repository administrators cannot change or weaken these safety settings locally.
1. Navigate to the Organization Settings.
2. In the left sidebar, click Code security and select Configurations.
3. Click New configuration (or edit an existing custom configuration).
-> 4. Under the Secret scanning section, locate the dropdown for Prevent direct alert dismissals and set it to Enabled.
5. Save the configuration and Apply it to all relevant repositories across the organization.
Reference:
https://github.blog/changelog/2024-03-11-secret-scanning-and-push-protection-are-enabled-by-default-on-new-public-repositories/
https://github.blog/changelog/2025-06-03-custom-roles-can-now-review-secret-scanning-alert-dismissal-requests/