Validation Failed for /search/issues
for organization private repository with fine-grained token
#41328
Answered
by
lukakerr
lukakerr
asked this question in
API and Webhooks
-
Select Topic AreaBug BodyMaking a request to: curl "https://api.github.com/search/issues?q=repo:ORG/REPO+is:pr" -H "Authorization: Bearer github_pat_OWNER_TOKEN" fails with:
The fine-grained token has:
I believe these permissions are enough for the query to succeed. With a non-fine-grained token this query previously succeeded, but the organization has now mandated fine-grained tokens. Other org-based queries succeed as expected, for example the following returns a valid response with the ORG/REPO branches listed: curl "https://api.github.com/repos/ORG/REPO/branches" -H "Authorization: Bearer github_pat_OWNER_TOKEN" Am I doing something wrong, or is this actually a bug? |
Beta Was this translation helpful? Give feedback.
Answered by
lukakerr
Jan 10, 2023
Replies: 1 comment
-
This seems to have been fixed now. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
lukakerr
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This seems to have been fixed now.