Enforce corporate email addresses to be used when pushing commits to an organization repository

Enforcing members of an organization to use their corporate email addresses when pushing commits an organization repository would be helpful to ensure contributors of a repository are well identified, on both GitHub UI and other Git clients.

It would be helpful to have such feature built into GitHub, leveraging organization’s verified domain. I guess a pull request bot could check for commit authors policies but a native feature would cover more cases while being more transparent. It would behave as a pre-receive Git hook, in the same fashion as GitHub deals with authorized SSH key for use with SAML single sign-on. Additionally, it would handle cases were contributors push changes without opening pull requests.

1 Like