GithubRepoProvider cannot access private repositories in Github
See original GitHub issueI tried following the documentation on enabling private Github repository access but am unable to make it work. I am using the latest (to date) 0.2.0-fbbc302
helm chart for binderhub. My current secret.yaml looks like this:
config:
GithubRepoProvider:
access_token: <access-token-from-github>
But when I try to build a private repository I get the following:
Could not resolve ref for gh:<username>/<repository>/master. Double check your URL.
Just to verify, I tried out the GitLabRepoProvider
for gitlab with the following setting:
config:
GitLabRepoProvider:
private_token: <gitlab-token>
This pretty much works fine. Anything I am missing?
P.S. i also tried creating a Github App with a client_id
and client_secret
with the secret.yaml that looks like below but that also does not work.
config:
GithubRepoProvider:
client_id: <id>
client_secret: <secret>
Issue Analytics
- State:
- Created 4 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Binderhub unable to access private repo with git-credential-env
Deploy binderhub using 0.2.0-c8ab0a3 with repo2docker a251ad2 w/ a github access token · Try to create a new binder using a link to...
Read more >Not able to get private repo information · Issue #1382 - GitHub
Hi I am trying to fetch all the repos (including private ones) including their PRs and Reviews. I am authenticating using my personal...
Read more >gh repo clone is not working with private repositories #901
I am trying to clone private repositories but I get an error Steps to ... Could not resolve to a Repository with the...
Read more >Private repositories on github are not detected · Issue #129758
Cloning a private repository does not work: Only public repositories are available in the dropdown...private repos don't seem to be discovered.
Read more >Managing access to your personal repositories - GitHub Docs
When you remove a collaborator from your project, they lose read/write access to your repository. If the repository is private and the person...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kaseyhackspace my bad for the late reply, but private github repo access has been working for me (using the binder helm chart
0.2.0-f746e50
and usingaccess_token
in mysecrets.yaml
) …curious what version ofrepo2docker
you’re using? I initially ran into issues too but was fixed after https://github.com/jupyter/repo2docker/issues/736P.S. it should be
GitHubRepoProvider
in yoursecrets.yaml
, notGithubRepoProvider
Changing to
0.2.0-f746e50
fixed this bug for me, but note for anyone that might have the same issue: running “helm upgrade” didn’t work, I had to delete and re-install the helm chart from scratch.