Починить запуск CI для приватных репозиториев
Иногда задания ломаются с такой ошибкой:
Fetching changes...
Reinitialized existing Git repository in /builds/Mezijin/Compilers/.git/
remote: You are not allowed to download code from this project.
fatal: unable to access 'http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab.mmcs.sfedu.ru:82/Mezijin/Compilers.git/': The requested URL returned error: 403
Authenticating with credentials from /root/.docker/config.json
ERROR: Job failed: exit code 1
для публичных репозиториев такого не бывает. Возможно, связано с https://stackoverflow.com/questions/25689231/getting-gitlab-ci-to-clone-private-repositories/49552383#49552383
before_script:
- git config --global url."https://gitlab-ci-token:${CI_JOB_TOKEN}@gitlab.example.com/group/repo.git".insteadOf git@gitlab.example.com:group/repo.git
в .gitlab-ci.yml может помочь.
появлялось в той же старой версии gitlab: https://gitlab.com/gitlab-org/gitlab-foss/-/issues/45610