Hey Prefect Team! I see that to use gitlab storage we have to use access tokens, which i've tested and worked great! However, our team's standards typically use deploy tokens for services. Is this supported?
z
Zanie
03/26/2021, 7:50 PM
Hmm, from the docs they say
Deploy tokens cannot be used with the GitLab API.
which means that they will likely not work as we've written
We use the API to download the single relevant file whereas it looks like with a deploy token we'd have to write alternate logic that clones the repo
c
Charles Leung
03/26/2021, 7:55 PM
i see, thanks!
In one of my flows which runs regularly, i reference a file (a certificate) which is located in the same repo/dir; how does this work if Gitlab storage only pulls down the flow file?
z
Zanie
03/26/2021, 9:19 PM
Right now we don't support downloading additional files (although I think we'd accept a contribution / issue to do so). You'd have to write a task early in your flow that downloads the additional files (ie a shell task that uses the gitlab cli to clone it with a deploy token) or include your cert in the runtime environment instead (ie add it to a docker image and use a