Configuring Branch Protection to work with Jit

How to troubleshoot Branch Protection

Overview

Branch Protection in GitHub is a valuable best practice to ensure code quality and security.

However, specific branch protection settings can sometimes conflict with Jit’s functionality in the centralized configuration repository. Follow this guide to configure branch protection without disrupting Jit’s operations.

Solution

To maintain branch protection while ensuring Jit operates without issues, add Jit CI to the Bypass list in GitHub’s Branch Protection settings.

This adjustment allows Jit CI to function smoothly at both the repository and organization levels, without compromising branch protection.

Screenshots

Refer to the screenshots below for detailed steps on configuring the Bypass settings at the repository and organization levels.

Repository

Organization