Parse file correctly for authenticated repo request

This allows the use of files in repos with authentication. The previous
url construction for github api requests did not correctly construct
query params to authenticate and so very quickly hit the github rate
limit.