Hello all
I have a simple job that creates a release commit on each push to the master branch:
script:
- git config --global user.email $CI_EMAIL
- git config --global user.name $CI_NAME
- <RELEASE>
- git push --follow-tags https://ACCESS_TOKEN:$ACCESS_TOKEN@$CI_SERVER_HOST/$CI_PROJECT_PATH.git HEAD:$CURRENT_BRANCH
ACCESS_TOKEN
is a project access token made available to CI via CI/CD variables.
However, after enabling mandatory signing for commits the code above fails with the following:
remote: GitLab: Commit must be signed with a GPG key
The documentation mentions that each access token has a bot user associated with it. But I can’t find any information on how to sign commits created with an access token.
We are using self-hosted Gitlab installation v15.11.3.
Any help is appreciated.
Thanks, Sergey