Hi prefect team, I'm having this issue with a deployment that should take my code from gitlab and run it on a cloud run:push type of job. My issue is that the git authentication doesn't succeed no matter what I try, with the error being
RuntimeError: Failed to clone repository '<https://gitlab.xxx.com/private_repo.git>' with exit code 128.
. I have tried to give the access token as a secret block and as well as a gitlab credentials block and both of them encounter the same error.
My current configuration looks like this:
[
{
"prefect.deployments.steps.git_clone": {
"branch": "dev",
"repository": "<https://gitlab.xxx.com/private_repo.git>",
"access_token": "{{ prefect.blocks.secret.deployment-private-repo }}"
}
}
]
I've seen a simmilar issue, but for github where the resolution was to have the access token stored as a secret and not a github credentials block, but in gitlab's case doesn't work.
Another thing that I tried was to set up a subprocess work pool, and in this case, when the cloning starts, git credentials manager pops up with the access token as username. Is there any way to make this headless?