curl, you can use the standard
format to define your username
and passwords to the server you are importing from.
For exampe, 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
login token is a GitHub "personal access token".
Follow the instructions in that link to create one for yourself.
After that, an
import call to a private repo will work as expected:
Your GitHub credentials ARE NEVER given to the
They are only used locally by
curl once the server redirects to the
private repo URL.