Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Github: At least 1 approving review is required by reviewers with write access

Recently I changed to a new computer and faced this "warning message" when pushing to my own main branch with a simple protection rule.

The protection rule is:

enter image description here

and I am facing this warning message below:

remote: Bypassed rule violations for refs/heads/main:
remote: 
remote: - At least 1 approving review is required by reviewers with write access.

when pushing to my main branch. I wonder if it is a cause of concern? Since I am the owner, I thought this message won't appear.

like image 580
ilovewt Avatar asked Sep 03 '25 14:09

ilovewt


1 Answers

This is not a cause for concern. See the article: Info messages for bypassing branch protections in Git, published to the GitHub Blog March 29 2023.

"We now show bypassed branch protection rules in response to Git pushes. These are information messages and are not designed to block workflows. Historically there was no indication after a Git push that branch rules had been bypassed. Repo admins, actors with the bypass branch protections permissions, and actors in bypass lists on branch protections will now see a list of rules that were bypassed."

It's nothing to do with the fact that you're using a new computer, just that the move coincided with an update to GitHub's rule bypass visibility.

like image 134
fxn-m Avatar answered Sep 05 '25 02:09

fxn-m