As far as I can tell, there is no way to authenticate to github.com from the command line in order to hit a URL in a private repository.
e.g., I can authenticate and hit
but I can’t authenticate and hit:
The reason I’d like to be able to hit these github.com URLs is for the purpose of link checking. Many people maintain documentation in github, and sometimes those repositories are private. It would be great to be able to run a link checker script that would walk through markdown and other files and validate that the links are correct.
Unfortunately, it seems for now that the only authentication possible is through a web browser, unless there’s some trick I’m missing.
Thus, I’d like to request that github enable this ability, to authenticate and then hit URLs from the command line without having to re-write the urls as api.github.com.