Unable to create masked variable because: The value must have 8 characters
06:06 14 Sep 2025

I want to set up a Git_CI_USER. I get the message “Unable to create masked variable because: The value must have 8 characters.” My GIT_CI_USER only has 7 characters. Perhaps the problem can be solved with the help of a Personal Access Token, job ID or SSL?

Here are a few lines from my .gitlab-ci.yaml file

This solution doesnt work anymore.

before_script:
  - git remote set-url origin https://$GIT_CI_USER:$GIT_CI_PASS@gitlab.com/$CI_PROJECT_PATH.git

I tried to set up a PRIVATE ACCESS TOKEN.

before_script:
  - git remote add origin https://username:REDACTED@gitlab.com/$CI_PROJECT_PATH.git

Now I get the error message: error: remote origin already exists.

Please take a look at the screenshot enter image description here

gitlab gitlab-ci gitlab-ci-runner