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:
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With