Worker Git clone not working with HTTP Gitlab repository


I’m trying to deploy my flow using a worker infrastructure instead of an agent, but I get the following error when I run it after deployment:

RuntimeError: Failed to clone repository ‘http://…/prefect.git’ with exit code 128.

in my prefect-yaml file, the pull action is defined as follows and is deployed using a process work-pool.

pull :

  • prefect.deployments.steps.git_clone :
    repository: http://…/prefect.git
    branch : dev
    credentials: “{{prefect.blocks.gitlab-credentials.gitlab}}”

The exact same settings in the storage block used by the agent are working.

What could be the reason for this error?
Is HTTP not supported in the pull action?
Does Prefect Cloud need access to our Gitlab? Only the infrastructure in which the agent and worker are running has it.

Thank you very much!