joshkautz / Starstrike-App

[Disabled] A social experiment to unlock the Starstruck GitHub achievement!
https://starstrike.app
GNU General Public License v3.0
1 stars 0 forks source link

Authorization #28

Open GitMalmoer opened 3 months ago

GitMalmoer commented 3 months ago

Hello Josh nice app! I saw your post on stackoverflow https://stackoverflow.com/questions/74308847/how-do-i-use-github-api-to-create-a-new-repository-for-a-user-that-installs-my-g Im trying to do something similar to your app but im failing at creating repo part. This is what im receiving after sending request to: https://api.github.com/user/repos Im providing the valid Bearer token Bearer ghu_GHtbeUcUGaiXzVTiduDVx2wOomzBH2fQucc(this one is fake). And this is my response:

{
    "message": "Resource not accessible by integration",
    "documentation_url": "https://docs.github.com/rest/repos/repos#create-a-repository-for-the-authenticated-user"
}

I added all permissions in https://github.com/settings/apps -> github apps -> -> permissions If i switch to fine grain token it works just fine but on my account. The thing is i want to create repos on behalf of other user validated with my app. Do you have any idea how to fix it?

GitMalmoer commented 3 months ago

image I see it works with OAuthApp but not with githubApp do you have any idea why is that?