Email from CircleCI showing Author: Unknown even after git config --global user.name is updated

We were getting emails from circleCI showing the Author of the commit as “Unknown” but linking that text to their email address. We suspected this was because of the git config --global user.name not being set, but even after we set this, the commits were still coming through as Unknown. Is this a caching issue or are we not resolving it correctly?