Consistently Allow GitHub Apps As Exceptions To Branch Protection ...

Back to changelog

Previously, some branch protections only allowed exceptions to be granted to users and teams. Now, GitHub Apps can also be granted exceptions to any branch protection that supports exceptions.

Admins can create branch protection rules to enforce certain workflows for branches, such as requiring a pull request before changes can be merged to a branch. This is a good practice, but you may want to make exceptions to a rule for specific people, teams, or GitHub Apps. For example, if you have a GitHub App that calls GitHub APIs to make changes in a repository, you may want to permit that App to make changes without creating a pull request. Previously, these exceptions could be granted to people and teams, but only some protections allowed GitHub Apps.

Now, branch protections that previously only allowed exceptions for people and teams also support GitHub Apps. When admins configure these branch protections, they can choose from a list of GitHub Apps that are installed and authorized for the repository, as shown here:

Image of adding a GitHub App as an exception to a branch protection setting

For information about branch protection rules, visit Managing a branch protection rule.

For information about GitHub Apps, visit About GitHub Apps.

We appreciate feedback on this and other topics in GitHub's public feedback discussions.

Feb.05 Improvement

Improved pull request “Files changed” – February 5 updates collaboration tools

Feb.03 Release

GitHub Mobile: Comment on unchanged lines in pull request files client apps

Jan.29 Release

Codespaces is now in public preview for GitHub Enterprise with data residency collaboration tools

Jan.22 Improvement

Improved pull request “Files changed” page on by default collaboration tools

Jan.21 Improvement

GitHub Copilot CLI: Plan before you build, steer as you go client apps copilot

Jan.21 Improvement

Install and Use GitHub Copilot CLI directly from the GitHub CLI client apps copilot +1

Jan.14 Improvement

GitHub Copilot CLI: Enhanced agents, context management, and new ways to install client apps copilot +1

Dec.18 Improvement

Teams management now moved to Settings collaboration tools

Dec.16 Improvement

More direct access to agent session creation across GitHub Mobile client apps copilot +1

Subscribe to our developer newsletter

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

Enter your email* Subscribe

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.

Back to top

Tag » Add Branch Protection Github