Improvement

August 5, 20251 Minute Read

New API endpoints for listing and updating push protection configurations

You can now use the REST API to list and update push protection configurations for secret scanning patterns at the enterprise and organization levels. Push protection helps prevent secrets from being leaked in repositories by scanning for patterns before code is pushed. These endpoints make it easier to manage which patterns are included in push protection across your organization or enterprise.

The following endpoints are now available:

Any changes to push protection settings now generate audit log events, giving you greater visibility into configuration updates.

To learn more about push protection configurations, see the public preview changelog post.

Subscribe to our developer newsletter

Discover tips, technical guides, and best practices in our biweekly newsletter just for devs.

By submitting, I agree to let GitHub and its affiliates use my information for personalized communications, targeted advertising, and campaign effectiveness. See the GitHub Privacy Statement for more details.

New API endpoints for listing and updating push protection configurations - GitHub Changelog