I've created the npm package validate-commit-email, which lets you validate the email of the current committer: https://github.com/ResourcefulHumans/validate-commit-email