Can't run `git` commands with Hazel

I have a rule that runs a shell command that commits changes to a file and pushes them with Git. Here is how it looks:

Whenever this rule gets ran, this error occurs in Console:
Basically Hazel fails to run the appropriate Git commands.
I am then forced to go to iTerm and `git push` the changes from there. In iTerm everything works perfectly and I also use Zsh there too.
In Hazel it fails. What can I do to make this work? This is my Git config for reference. I do sign my commits and my GitHub has 2FA.
Thank you very much for the help.

Whenever this rule gets ran, this error occurs in Console:
- Code: Select all
2018-05-20 23:40:35.768 hazelworker[66330] websites.csv: Rule Auto commit (websites.csv) matched.
2018-05-20 23:40:36.743 hazelworker[66330] [Error] Shell script failed: Error processing shell script on file /Users/nikivi/dev/alfred/alfred-web-searches/workflow/websites.csv.
Basically Hazel fails to run the appropriate Git commands.
I am then forced to go to iTerm and `git push` the changes from there. In iTerm everything works perfectly and I also use Zsh there too.
In Hazel it fails. What can I do to make this work? This is my Git config for reference. I do sign my commits and my GitHub has 2FA.
Thank you very much for the help.