GitHub user khalibartan edited a discussion: Gitextractor not using ssh key for 
ssh url and instead using github key

Hi team i configured a blueprint with git repo ssh url. here is the plugin 
config 

```    
{
      "plugin": "gitextractor",
      "subtasks": null,
      "options": {
        "connectionId": 1,
        "fullName": "<my-org>/carousel",
        "name": "carousel",
        "pluginName": "github",
        "privateKey": "/tmp/temp_ssh_key",
        "proxy": "",
        "repoId": "github:GithubRepo:1:671243190",
        "url": "ssh://g...@github.com/<my-org>/carousel.git"
      }
    }
```

While git cloning the task is failing with following error 
```
subtask Clone Git Repo ended unexpectedly Wraps: (2) git cmd [git clone 
ssh://git@<my_github_tokens>@github.com/<my-org>/carousel.git 
/tmp/gitextractor1819265204 --depth=1 --bare] in failed: Cloning into bare 
repository '/tmp/gitextractor1819265204'... | Warning: Identity file 
/tmp/gitext-pk2397552950 not accessible: No such file or directory. | 
git@<my_github_tokens>@github.com: Permission denied (publickey). | fatal: 
Could not read from remote repository. | | Please make sure you have the 
correct access rights | and the repository exists. Error types: (1) 
*hintdetail.withDetail (2) *errors.errorString
```
Why it is using github tokens when my private ssh key is added to ssh agent 
already

GitHub link: https://github.com/apache/incubator-devlake/discussions/8412

----
This is an automatically sent email for dev@devlake.apache.org.
To unsubscribe, please send an email to: dev-unsubscr...@devlake.apache.org

Reply via email to