Fail to clone repository in CI task after upgrade from gitlab-ce 14 to 15

I have a gitlab-ce instance running for years. I use CI tasks to build my python modules and upload them to internal pypy-like repo.
Everything was working just fine until i upgraded from gitlab 14 to the latest 15.10.1 (debian buster packages from gitlab), following the upgrade path described in the doc.
Everything seems fine, except for the jobs. Every job now fails with the following error:

Fetching changes with git depth set to 50...
Initialized empty Git repository in /builds/me/my-python-module/git/
Created fresh repository.
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

There’s no enforce 2FA and i’ve checked the mentionned page without finding anything relevant for my case. I’ve launched the runner in debug mode from console and i can see it’s using gitlab-ci-token user and a generated token, but it fails.

I’ve seen some similar issues on the forum, but without applicable answer. Any idea what’s going on here?

I managed to make it works again by forcing the HTTP(S) clone url to the https url of my gitlab instance

I didn’t use https at first (long ago) and didn’t changed anything in gitlab to add https later, since i have a front haproxy instance that is taking care of it. Unfortunately, since gitlab is now using gitlab-ci-token user and pass directly in the url, they were lost while redirecting http to https.
The clone using http process must be new, because it was working before.