Define these variables on Gitlab as CI/CD variables
Option 1
(Gitlab) You can create access key and use it while doing git operations: