raw.githubusercontent.com - How to authenticate and how to see headers with information? #160828
Replies: 5 comments 4 replies
-
|
In the meantime, I guess one workaround is to switch to using this API method instead: https://docs.github.com/en/rest/repos/contents?apiVersion=2022-11-28#get-repository-content But that's a pain ..... |
Beta Was this translation helpful? Give feedback.
-
|
Hi, @jarofgreen As far as I can tell, raw.githubusercontent.com doesn’t actually support authentication at all. It looks like the only official way to do authenticated access is via the GitHub REST API (/repos/:owner/:repo/contents/:path), which gives you the proper rate limit headers and actually respects your token. Totally agree it would be nice if raw.githubusercontent.com gave you some signal back, even if it’s just a header saying “auth not supported.” Right now it’s just guesswork. Hope that helps - and if you find anything better, I’m all ears too! |
Beta Was this translation helpful? Give feedback.
-
|
The Are you getting rate-limited? |
Beta Was this translation helpful? Give feedback.
-
|
``loadstring(game:HttpGet("https://raw.githubusercontent.com/NinjaGamingx/Scripts/refs/heads/main/GrowAGarden"))() |
Beta Was this translation helpful? Give feedback.
-
|
🕒 Discussion Activity Reminder 🕒 This Discussion has been labeled as dormant by an automated system for having no activity in the last 60 days. Please consider one the following actions: 1️⃣ Close as Out of Date: If the topic is no longer relevant, close the Discussion as 2️⃣ Provide More Information: Share additional details or context — or let the community know if you've found a solution on your own. 3️⃣ Mark a Reply as Answer: If your question has been answered by a reply, mark the most helpful reply as the solution. Note: This dormant notification will only apply to Discussions with the Thank you for helping bring this Discussion to a resolution! 💬 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Select Topic Area
Question
Body
https://github.blog/changelog/2025-05-08-updated-rate-limits-for-unauthenticated-requests/ It's now clear that unauthenticated access to raw.githubusercontent.com will be strongly rate limited and authenticated access is encouraged. Ok, message received loud and clear.
But the REST API documentation is clear on how to authenticate to the API and you even get handy HTTP headers back to tell you your status: eg
What I have not been able to find is any clear information on how to authenticate to raw.githubusercontent.com .
eg:
Authorizationheader work? (I get a 200 but no indication that the auth details were used)I did try experimenting, but another problem is that as far as I can see calls to raw.githubusercontent.com don't give you back any headers like the ones above so you can tell if you authentication attempt was successful or not.
Am I missing something obvious here? (Sorry if so)
Are there docs on this?
Can we get headers with auth feedback?
Thanks,
ps. If people want to discuss the wisdom of this rate limiting, there are existing issues - let's keep this issue focussed on docs and headers please! https://github.com/orgs/community/discussions/157887 and https://github.com/orgs/community/discussions/159123
Beta Was this translation helpful? Give feedback.
All reactions