Emmanuel Rieg
12/15/2025, 1:19 PMEmmanuel Rieg
12/15/2025, 1:21 PMpython -c 'from prefect.blocks.system import Secret; from prefect.runner.storage import GitRepository; g =GitRepository( url="<https://gitlab.com/g/g.git>", credentials={ "username": Secret.load("gitlab-username"), "access_token": Secret.load("gitlab-lh-access-token"), }, branch="prefect",) ; import asyncio; asyncio.run(g.pull_code())'
here is a simple test i run in the pod
and it clone the repo without problem , but prefect with similar code get error 128 (permission ?)
<flow>.from_source(
source = GitRepository(
url="<https://gitlab.com/g/g.git>",
credentials={ "username": Secret.load("gitlab-username"),
"access_token": Secret.load("gitlab-lh-access-token"),},
branch="prefect",
)).deploy(...)
anyone has an idea ?Emmanuel Rieg
12/15/2025, 1:26 PMEmmanuel Rieg
12/16/2025, 8:43 AMusername so i needed to add .get() to it ( in my snippet) , but the username is then hardcoded :(