repository List does not return user private repos
romainverduci opened this issue · 0 comments
romainverduci commented
The current implementation of https://github.com/jenkins-x/go-scm/blob/master/scm/driver/github/repo.go#L189 or https://github.com/jenkins-x/go-scm/blob/master/scm/driver/github/repo.go#L238 does not return private repositories even though we specify a token.
According to github api changes: https://developer.github.com/changes/2019-12-03-internal-visibility-changes/ we can get that by enabling a visibility parameter for an authenticated user using the /user/repos
api.