Search code examples
gitlabreleasegitlab-ci-runnergitlab-runner

fatal: Authentication failed for 'https://gitlab.com/


I came across this authentication error while trying to do a release.

fatal: Authentication failed for 'https://gitlab.com/[project_name]/[repo_name].git/'
/builds/[project_name]/[repo_name]/deploy/change-log.js:30
        throw error;
        ^

I'd really appreciate it if someone could give me a lead on this. Thank you!


Solution

  • Because it's an Access denied error, and because the code contains an ACCESS_TOKEN env var, that token might have been revoked together with their account.

    Creating a new project access token and injecting it as a custom variable should help solve that problem at least.