Learn how bypass requests work when push protection blocks commits containing secrets.
When push protection blocks a commit containing a secret, contributors may need to bypass the block to complete their push. If delegated bypass for push protection is enabled, contributors without bypass privileges must submit a bypass request and wait for approval from designated reviewers. This allows organizations to maintain security oversight while enabling legitimate exceptions when needed. For more information, see Delegated bypass for push protection.
If delegated bypass for push protection is not enabled, contributors can bypass push protection at their own discretion.
When enabling delegated bypass for push protection, organization owners or repository administrators decide which individuals, roles or teams can review (approve or deny) requests to bypass push protection.
If you are a designated reviewer, you must review bypass requests and either approve or deny them based on the request details and your organization's security policies.
When a contributor without bypass privileges requests to push a commit containing a secret, a bypass requests is sent to the reviewers. The designated group of reviewers:
GitHub displays the following information for each request:
The contributor is notified by email of the decision and must take the required action:
You can use GitHub Apps with fine-grained permissions to programmatically review and approve push protection bypass requests. This enables you to enforce consistent security policies, integrate with external security tools, or reduce manual review burden.
For more information about permissions, see Organization permissions for "Organization bypass requests for secret scanning".