Commit / push with project access token

I’m trying to commit/push with a project access token, however I’m being blocked by the push rule “Check whether the commit author is a GitLab user”, which I do not want to turn off.

What is the correct email address for a project access token user? The user is displayed as direct member of the project with maintainer role.

I’ve tried several, all yielding the same error:

  • remote: GitLab: Author ‘project_18_bot’ is not a member of team
  • remote: GitLab: Author ‘project_18_bot@example.com’ is not a member of team
  • remote: GitLab: Author ‘project_18_bot@’ is not a member of team
  • remote: GitLab: Author ‘project_18_bot@{ourGitlabDomain}’ is not a member of team

Are project access tokens not able to push after all?

After our admin got back to me, I managed to solve this.

While the user is displayed as “@project_18_bot” to me publicly, the email was actually generated as “project18_bot@example.com”. So I had an extra underscore.

I’m leaving this thread if anyone has the same issue.

I’ve created an issue to update the docs: Add email of project bot users in documentation (#336670) · Issues · GitLab.org / GitLab · GitLab