#373
Return 404 for private GitHub repositories the caller cannot see
- Answer user and anonymous callers with
404 Not Foundinstead of401or403for a private repository they cannot see, on reads, writes, contents writes and admin routes, so its existence is not confirmed. - Keep
403for callers who can see the repository but lack the permission, and installation token errors unchanged, with regression coverage and docs.
References:
404 Not Foundinstead of403 Forbiddenfor private resources requested without proper authentication, to avoid confirming that private repositories exist: https://docs.github.com/en/rest/using-the-rest-api/troubleshooting-the-rest-api- Tokens without sufficient permissions receive
404 Not Foundor403 Forbidden: https://docs.github.com/en/rest/authentication/authenticating-to-the-rest-api
Fixes #372
Activity
5vercel[bot]reviewed2d ago
vercel[bot]reviewed1d ago
@jychp is attempting to deploy a commit to the Vercel Labs Team on Vercel.
A member of the Team first needs to authorize it.