Can I use a Deploy Key to clone a snippet repository?

I want to clone and commit a project snippet, which is a repo under the hood. I can do this using my main development machine, which uses my main SSH key, and it works fine.

However, I need to do this on a CI machine instead, so I’ve set up a Deploy Key for the project to limit access to just this project, but just get an access denied message when I try to clone the snippet.

Does anyone know if a project Deploy Key can be used to clone a snippet? Or is the Deploy Key limited to only the main repo in the project?

This is all on gitlab.com.
Thanks

Deploy keys | GitLab provides a table with use cases for deploy keys and deploy tokens. Git operations should work when external auth is enabled (disabled by default).

Great thanks very much!

1 Like