question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

GithubRepoProvider cannot access private repositories in Github

See original GitHub issue

I 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:closed
  • Created 4 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
eexwhyzeecommented, Sep 20, 2019

@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 using access_token in my secrets.yaml) …curious what version of repo2docker you’re using? I initially ran into issues too but was fixed after https://github.com/jupyter/repo2docker/issues/736

P.S. it should be GitHubRepoProvider in your secrets.yaml, not GithubRepoProvider

0reactions
nandanraocommented, Nov 4, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found