Warning
Push protection exemptions are designed for trusted automation that needs to push many commits with minimal friction. Exemptions may lead to leaked secrets, and should be granted with caution.
Granting exemptions for your repository
Note
If an organization or enterprise owner configures delegated bypass at the organization or enterprise level, the repository-level settings are disabled.
-
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" section of the sidebar, click Advanced Security.
-
Under "Secret Protection," ensure that push protection is enabled for the repository.
-
Under "Push protection," to the right of "Who can bypass push protection for secret scanning," select the dropdown menu, then click Specific roles or teams.
-
Under "Bypass list," click Add role or team.
-
In the dialog box, select the roles and teams that you want to add to the bypass list, then click Add selected.
Note
You can't add secret teams to the bypass list.
-
To fully exempt the actors from push protection, to the right of the actors' details, select , then click Exempt.
Granting exemptions for your organization
-
On GitHub, navigate to the main page of the organization.
-
Under your organization name, click Settings. If you cannot see the "Settings" tab, select the dropdown menu, then click Settings.

-
In the "Security" section of the sidebar, select the Advanced Security dropdown menu, then click Configurations.
-
Create a new custom security configuration, or edit an existing one. See Creating a custom security configuration.
-
When defining the custom security configuration, under "Secret scanning," ensure that "Push protection" is set to Enabled.
-
Under "Push protection," to the right of "Bypass privileges," select the dropdown menu, then click Specific actors.
-
Select the Select actors dropdown menu, then choose the actors you want to add to the bypass list.
Note
- You can't add secret teams to the bypass list.
-
To fully exempt the actors from push protection, to the right of the actors' details, select , then click Exempt.
-
Click Save configuration.
-
Apply the security configuration to repositories in your organization. See Applying a custom security configuration.
Granting exemptions for your enterprise
-
Navigate to your enterprise. For example, from the Enterprises page on GitHub.com.
-
At the top of the page, click Settings.
-
In the left sidebar, click Advanced Security.
-
In the "Security" section of the sidebar, select the Advanced Security dropdown menu, then click Configurations.
-
Create a new custom security configuration, or edit an existing one. See Creating a custom security configuration for your enterprise.
-
Under Secret scanning, ensure Push protection is enabled.
-
Under "Push protection," to the right of "Bypass privileges," select the dropdown menu, then click Specific actors.
Note
You can't add secret teams to the bypass list.
-
Select the Select actors dropdown menu, then choose the actors you want to add to the bypass list.
-
To fully exempt the actors from push protection, to the right of the actors' details, select , then click Exempt.
-
Click Save configuration.
-
Apply the security configuration to organizations and repositories in your enterprise. See Applying a custom security configuration to your enterprise.