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.

Support pulling from a private repo

See original GitHub issue

nbgitpuller is presumably intended for use with public repositories, but is there also a way of pulling files down from a private repo?

Presumably this would require a key adding to the repo URL, ideally set from a read-only account on the repo?

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:3
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

11reactions
biojermcommented, Oct 17, 2018

@betatim Thanks for the tips. To expand a bit on what I had to do to get the nbgitpuller link to work:

  1. Create a Personal Access Token following these directions and copy the key to some place safe

  2. Use the nbgitpuller constructor to help build the URL

  3. In the Repo_url field add your GitHubUserName : SecretToken @ between the http:// and your git branch URL(no spaces, I just added those for emphasis. Don’t forget the .git at the end of the URL path

3reactions
yuvipandacommented, Jan 12, 2021

I’ve got it working with github.com/yuvipanda/git-credential-helpers. There’s some helpful config here, here. https://github.com/utoronto-2i2c/jupyterhub-deploy#pulling-from-private-github-repos-with-nbgitpuller describes the final workflow.

Would love for someone to write this up! I’ll try and find some time in the next month for it…

Read more comments on GitHub >

github_iconTop Results From Across the Web

git - Clone A Private Repository (Github) - Stack Overflow
Open a git shell then git clone https://github.com/user/repo . Enter username and password when prompted. No need to setup a SSH key.
Read more >
Accessing private GitHub repos - UC Berkeley's JupyterHubs
Go to the GitHub app for the hub you are interested in. · Click the 'Install' button. · Select the organization / user...
Read more >
Using Private Git Repositories - Ping Identity DevOps
In GitHub, go to Settings --> Developer Settings --> Personal access tokens . · Click Generate new token and assign the token a...
Read more >
When making a private GitHub repository public, audit the pull ...
When making a private GitHub repository public, audit the pull requests · Cycle all the credentials · Rewrite the git history to remove...
Read more >
[Support Guide] How do I access private repositories in the ...
The link from your repository to our service only authenticates us against the “main” repo that you first configured, and won't automatically ...
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