I'm looking for potential solutions or ways to investigate what I think is a breakdown between git and GitLab.
My company requires commits to be signed and I've been able to successfully set up GPG and sign in the terminal. I generated the GPG key, added it to git and made sure it's added to my GitLab profile.
I used git log -1 --show-signature
to verify that my signature was "good" in the terminal, but it seems like GitLab isn't recognizing the signature for some reason. I'm not getting any error message in the terminal or anywhere else to aid in troubleshooting unfortunately.
I'm relatively new to git, so I'm hoping there are some more experienced devs who may have run into this issue in the past. Any help would be appreciated!
This is the message I get when I try to git push origin --> remote:
GitLab: Commit must be signed with a GPG key To
gitlab.xxxxx.net:revenue-operations/xxxxxxx.git ! [remote rejected]
2022-02-07-hotfix -> 2022-02-07-hotfix (pre-receive hook declined)
error: failed to push some refs to
'gitlab.xxxxx.net:revenue-operations/xxxxxxxx.git'