Push rule 'Reject unverified users' is not working

Summary

Despite enabling the push rule 'Reject unverified users', we are able to push commmits as an unverified user.

Steps to reproduce

  1. Enable push rule 'Reject unverified users' in Settings - Repository - Push rules

image

  1. Commit a file with an unverified email address:

git commit -m 'Committed under unverified email address despite push rule' --author "Unverified <unverified@unverified.com>"

git push

  1. Check whether commit has really been pushed:

image

  1. Check email address of committer:

image

What is the current bug behavior?

The push gets accepted while an unverified email address is being used in the commit.

What is the expected correct behavior?

The push gets rejected due to the push rule.

Output of checks

Results of GitLab environment info

Gitlab version: 13.11.3-ee