Skip to content

Feature Request: Return "Unauthorized" when webhook auth token is illegal (instead of "Not Found" ) #26368

Answered by BrightRan
kenchon asked this question in Actions
Discussion options

You must be logged in to vote

@kenchon,

In most cases, when a user tries to visit a page that he does not have the access on GitHub, he will get the “404 Not Found”.
I think we can explain this with the two points below:

  1. GitHub searches the pages within the accessible scopes of the user’s token (or the user). If the requested page is not found within the accessible scopes, the “404 Not Found” returned.

  2. If the requested page is not found within the accessible scopes of the user, it is completely unnecessary to tell the user that the requested page really exists. As @Simran-B mentioned, it may be a security policy that using an obscure message.

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants