I have a weird behavior since this morning on my gitlab CI/CD. The git clone fails on the authentication step. The error is as follow
remote: HTTP Basic: Access denied. The provided password or token is incorrect or your account has 2FA enabled and you must use a personal access token instead of a password. See https://gitlab.iselection.com/help/topics/git/troubleshooting_git#error-on-git-fetch-http-basic-access-denied
fatal: Authentication failed for 'https://gitlab.xxx.com/xxx/'
Here is the yaml file
variables:
GIT_SSL_NO_VERIFY: "true""
TOKEN_NAME: certificate
TOKEN_VALUE: "xxx"
image: alpine:latest
before_script:
- apk add git curl openssl openjdk11 bash ca-certificates
- git clone https://$TOKEN_NAME:$TOKEN_VALUE@gitlab.xxx.com/xxx
So I am using a token defined in the repo I want to clone and when running the same command from my local machine, it works smoothly.
What can I check next or what can I do ?
Thx
edit: other failing tests
There is an issue with curl on the latest version of alpine right now. Try using Alpine version 3.11.13
image: alpine:3.11.13