Unable to clone private repository with gitlab-ci-runner user via http
Gitlab 8.12.1 CI runner 1.6.0
Getting following error when cloning private repository:
Running with gitlab-ci-multi-runner 1.6.0 (01b3ea1) Using Shell executor... Running on gitlab-runner... Cloning repository... Cloning into '/home/gitlab-runner/builds/ddc5f321/0/_______/_______'... fatal: unable to access 'http://gitlab-ci-token:xxxxxxxxxxxxxxxxxxxx@gitlab/_______/_______.git/': The requested URL returned error: 403 ERROR: Build failed: exit status 1
NGINX logs:
123.123.123.123 - - [26/Sep/2016:10:16:43 +0000] "GET /_______/_______.git/info/refs?service=git-upload-pack HTTP/1.1" 401 26 "-" "git/1.8.3.1" 123.123.123.123 - gitlab-ci-token [26/Sep/2016:10:16:43 +0000] "GET /_______/_______.git/info/refs?service=git-upload-pack HTTP/1.1" 403 13 "-" "git/1.8.3.1"
Works fine if project switched to internal access mode.