dosubot[bot] commented on issue #7530: URL: https://github.com/apache/incubator-devlake/issues/7530#issuecomment-2134913100
<!-- Answer --> Yes, it is possible to clone GitLab repositories using SSH in the `incubator-devlake` repository. The `buildCloneCommand` function in the `clone_gitcli.go` file includes handling for SSH URLs and private keys <sup>[[1]](https://github.com/apache/incubator-devlake/blob/main/backend/plugins/gitextractor/parser/clone_gitcli.go)</sup>. Regarding environment variables, there isn't a specific environment variable to enable cloning via SSH instead of HTTP/HTTPS. However, the method of cloning is determined by the URL scheme (e.g., `ssh://` for SSH). You can configure the repository URL to use the SSH scheme to clone via SSH. For example, you can set the repository URL in your configuration to use the SSH format: ```yaml GITLAB_REPO_URL: "ssh://g...@gitlab.com:username/repo.git" ``` This will ensure that the cloning process uses SSH. <!-- Dosu Comment Footer --> <details> <summary> #### Details </summary> **About Dosu** This response is meant to be useful and save you time. It is **not meant to be a precise solution**, but rather a starting point for your own research. Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant. </details> *To continue the conversation, mention @dosu.* -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@devlake.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org