I have an Okteto manifest where I need to clone a private repository as part of the deploy commands, something like this:
- name: "Clone private repository"
command: git clone email@example.com:my-user/my-private-repo.git
When I execute this manifest locally, it works because it is using my local ssh key, but when I deploy the repository from the UI I’m getting the following error:
firstname.lastname@example.org: Permission denied (publickey).fatal: Could not read from remote repository.Please make sure you have the correct access rightsand the repository exists
I tried configuring the GitHub App giving access to the repository, but that only works If I deploy directly that repository from the UI, but it doesn’t work If I want to clone it as part of other’s repository manifest.
How can I make it work?