- replace
GITHUB_TOKEN
with your own github token
All fine-grained personal access tokens include read access to public repositories. To access public repositories with a personal access token (classic), select the "public_repo" scope.
See also: https://docs.github.com/en/graphql/guides/forming-calls-with-graphql & https://tanstack.com/query/latest/docs/framework/react/overview
Stackoverflow - GitHub GraphQL, tokens and SPA