I want to connect a git Submodule to deepsource.io. It says I need to connect it via SSH. The main repository is hosted on Github, and the Submodule is hosted by Git lab self-managed (git.server.com).
Where do I have to paste the public SSH key from deepsource.io? Do I have to connect it on my account or the Submodule or how?
CodePudding user response:
Once you generate the SSH keys on deepsource.io (by navigating to a repository's Settings > SSH Access > Generate SSH key pair), copy the public key provided and add it as a deploy key to your GitLab submodule repository (Settings > Repository > Deploy Keys). Do not grant write permissions to the key.