Comments (4)
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 [1].
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:
GITLAB_REPO_URL: "ssh://[email protected]:username/repo.git"
This will ensure that the cloning process uses SSH.
Details
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.
To continue the conversation, mention @dosu.
from incubator-devlake.
To ensure that cloning always uses SSH, you need to configure the repository URLs to use the SSH scheme. Unfortunately, there isn't a specific environment variable in the incubator-devlake
repository to enforce SSH for all GitLab repository cloning. However, you can achieve this by setting the repository URLs to use the SSH format.
For example, in your configuration, you can specify the repository URL like this:
GITLAB_REPO_URL: "ssh://[email protected]:username/repo.git"
This will ensure that the cloning process uses SSH. The cloning method is determined by the URL scheme, so by setting the URL to use ssh://
, you enforce the use of SSH for cloning.
Additionally, the CloneGitRepo
function in the repo_cloner.go
file and the buildCloneCommand
function in the clone_gitcli.go
file handle SSH URLs and private keys, ensuring that SSH is used when the URL scheme is ssh
[1][2].
Details
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.
To continue the conversation, mention @dosu.
from incubator-devlake.
But how can i define it should always use ssh
from incubator-devlake.
I'm not sure there is a way to provide an ssh key to use to clone repositories, unless undocumented. This should perhaps be labeled as a feature request.
from incubator-devlake.
Related Issues (20)
- [Question][Module Name] cant connect to Jira HOT 2
- [Question][Module Name] Gitextractor cant clone repos from gitlab HOT 7
- [Question][Module Name] AxiosError: Request failed with status code 502 HOT 2
- [Question][Bitbucket] Conversion from collation utf8mb4_0900_ai_ci into utf8mb3_general_ci impossible HOT 2
- [Bug][backend] Docker build is failing HOT 4
- [Question][Deployment] Webhook: <no value> is allowed for required? HOT 2
- [Bug][gitext] Failed to clone Github private repos HOT 6
- [Bug][Jira] A issue has been deleted in Jira๏ผbut devlake didnot delete it in devlake mysql๏ผso when execute config-ui collect data ,the issue still exist HOT 2
- [Bug][AzureDevOpsPlugin] Unauthorized request HOT 8
- [Feature][Keycloak] Can't add SSO in Apache Devlake.
- [Bug][JiraPlugin] Failing on "collectIssues" subtask HOT 9
- [Feature][Convertor] Add data processing for Issue tracking to compute issue status and assignee history HOT 1
- [Bug][Config UI] I can still add an existing scope in AzureDevops
- [Feature][GitLab] Add assignees and reviewers to table.pull_requests
- [Bug][Module Name] my data doesnt show on the dashboard can someone help me please HOT 3
- [Refactor][DORA] Refactor CalculateChangeLeadTimeMeta subtask HOT 2
- [Feature][PagerDuty] Change Incident Times HOT 5
- [Bug][PagerDuty] not enough info for Pagerduty execution (400) HOT 3
- [Bug][Module Name] AxiosError: Request failed with status code 500 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-devlake.