You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add ability to forbid email addresses with user-specified expressions #651
Some projects, like FreeBSD, do not accept commits from anonymous authors, such as jane.doe@users.noreply.github.com [1]. This is because GitHub author usernames can be changed [2], breaking the account email provided by GitHub.
Describe the solution you'd like
Being able to specify a regex (in the vein of author-email) which forbids certain email domains/patterns is desirable, for flexibility reasons.
Having a way to forbid GitHub email addresses using a boolean toggle would be a nice bonus, but it's not a requirement.
Activity
shenxianpeng commentedon Nov 4, 2026
Thanks! This already works with
author_email_patternand a negative lookahead:Run it with
--author-email(orauthor-email: truein the Action). I've added this example to the docs in commit-check/commit-check.com#71.ngie-eign commentedon Nov 5, 2026
Hm. I didn't think about that possibility - thanks for documenting it :)!