Skip to content

Latest commit

 

History

History
26 lines (16 loc) · 1.07 KB

File metadata and controls

26 lines (16 loc) · 1.07 KB

Because bb-import uses curl, you can use the standard .netrc file format to define your username and passwords to the server you are importing from.

For example, to make script files in private GitHub repos accessible, create a ~/.netrc file that contains something like:

machine     raw.githubusercontent.com
login       231a4a02aeb1fbcf164f7c444ae5a211c1451d95
password    x-oauth-basic

The login token is a GitHub "Personal Access Token". Follow the instructions in that link to create a token for yourself.

After that, a bb-import call to a private repository will work as expected:

bb-import "my-organization/private-repo@0.3.5"

Your GitHub credentials are NEVER given to any server owned or operated by Ragdata or the Bash-Bits team.

They are used ONLY LOCALLY by curl once the server redirects to the GitHub private repo url.

^ Top