RepoSense icon indicating copy to clipboard operation
RepoSense copied to clipboard

User trying to run RepoSense with private repos

Open damithc opened this issue 3 years ago • 6 comments

A user is trying to run RepoSense with private repos. He has tried running it against GitHub and against a local copy of the private repo, but failing in both. I'm waiting for more info from the user. Meanwhile, should the above be possible with the current release version? Can do a trial to confirm?

damithc avatar May 11 '21 03:05 damithc

@reposense/21-22-active-developer @reposense/stage-1-active-reviewer any ideas?

damithc avatar May 11 '21 03:05 damithc

Private repos on github is currently impossible since no option to give github personal access token with correct permissions.

Local private repos are ok (tested to work on windows), there's already an example here: image

However since the path shown is windows so not sure if it works on mac or linux, and I can't test.

gerhean avatar May 11 '21 03:05 gerhean

Thanks for checking @gerhean Will update here if I receive further info.

damithc avatar May 11 '21 04:05 damithc

I'm running RepoSense locally from the Java executable, so even if the repo is private, as long as git on my CLI can access the repo it should be fine yah? I'm using SSH key for Github authentication which is transparent to git.

leongwaikay avatar May 11 '21 04:05 leongwaikay

(Windows) Confirmed that it can analyze online private repo if you can already access them from command line with git commands (or that running git ls-remote https://github.com/username/reponame shows that the repo can be accessed).

gerhean avatar May 11 '21 06:05 gerhean

This specific problem (with the local repos) could be due to #1546 Waiting for confirmation from @leongwaikay

damithc avatar May 11 '21 06:05 damithc

I believe we can close this issue as the investigation some time back. Reposense works if users already have access to the repo via their own git commands.

chan-j-d avatar Jan 27 '23 14:01 chan-j-d