When an author or committer’s email is not configured correctly, the commit is not associated with the correct user, and it is almost impossible to trace who is responsible for which piece of code.
To troubleshoot the root cause do the following:
Make sure the listed email address is your correct email address
If it is correct, see Add an email address to your GitHub account
If it is incorrect, see Update your git configuration settings
Follow the steps in this guide
Re-run the policy
- Open command line inside the git dir and type the following
$ git config --global user.email
Set your username and email address:
$ git config --global user.email email@example.com $ git config --global user.name "John Doe"
You have a local git config file inside your repository dir which overwrites your global git config - fix it
Push the changes to the remote branch - Datree automatically scans your changes.