Replies: 1 comment
-
That error message implies that you are authenticating as a GitHub App installation, not as a user. You don't seem to be using the token provided by the user for this request |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Howdy folks 👋
We have auth process in our website. So user can authenticate with Github, hence they provide us a token we can use to work with their repos, etc.
The issue I faced related to fetching particular branch from repo isn't related to the user who's related to the token.
https://docs.github.com/en/rest/reference/repos#list-branches--code-samples
When I use user token and call github API like
/repos/{owner}/{repo}/branches
it returns me info about branches.When I want to call
/repos/{owner}/{repo}/branches/{branch}
it fails with errorResource not accessible by integration
.In case of fetching branch
/repos/{owner}/{repo}/branches/{branch}
of related repo to the user - it works fine.Has anyone faced similar issues or can know what happens? Thanks in advance 😃
Beta Was this translation helpful? Give feedback.
All reactions