/user/installations returns the wrong repositories_url
#201211
Replies: 3 comments
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
It's a long-standing quirk in GitHub's API design. The issue happens because GitHub reuses the exact same Because those URLs are statically designed for the App's context rather than the User's context, following them with a User Access Token throws a 403 Forbidden error. Like you pointed out, the only real workaround right now is to completely ignore the The same goes for |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
🏷️ Discussion Type
Bug
💬 Feature/Topic Area
API
Body
/user/installationslists the app installations accessible to a user access token.However the installations it lists have the following hardcoded value:
This is
it is only accessible via installation tokens, from which it gets the installation, it fails with a 403 if accessed via a user access token (and would have no idea what installation's repositories to return besides). The correct endpoint when fetching installations via a user access token should be
Returning the
access_tokens_urlentry also seems dubious.Beta Was this translation helpful? Give feedback.
All reactions