GitHub Import API does not work with GitHub Apps #48252
Unanswered
coolize
asked this question in
API and Webhooks
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Select Topic Area
Bug
Body
Hi, this was running well before with permissions that i have, suddenly whenever I try to hit the API:
using bearer token that i have using githubapps, (even i activate all read and write permission)
with Request user authorization (OAuth) during installation is ticked,
https://docs.github.com/en/rest/migrations/source-imports?apiVersion=2022-11-28#start-an-import
PUT /repos/{owner}/{repo}/import
hitting this will return
403 User must have workflow scope in order to import a repository. []
I see that there's no way to add scope as documented in
Note: You don't need to provide scopes in your authorization request. Unlike traditional OAuth, the authorization token is limited to the permissions associated with your GitHub App and those of the user. https://docs.github.com/en/apps/creating-github-apps/authenticating-with-a-github-app/identifying-and-authorizing-users-for-github-apps
And in this case, in the Github App, I have enabled all the permission
![image](https://user-images.githubusercontent.com/19689452/220570212-f5ac233e-d592-49a9-ae3e-cc1c9004dc01.png)
Beta Was this translation helpful? Give feedback.
All reactions