Protected branch doesnt work

I was able to push to a protected branch even with those settings:

Hi @roijokr,

Well Branch protection rules work as documented for everyone else as far as I am aware. Most likely you have Misunderstood/misconfiguref something about the branch pattern or other settings.

By default, the restrictions of a branch protection rule don’t apply to people with admin permissions to the repository, so worth checking this setting. You can optionally choose to include administrators, too.