Help
cancel
Showing results for 
Search instead for 
Did you mean: 
Copilot Lvl 2
Message 1 of 3

Retrieving a list of forks while authenticated as a Github App?

Hi there, 

 

When authenticated as a Github App, should you be able to retrieve a list of forks for a repository? 

 

Right now, let's say that an organization Acme has installed my GitHub app and authorized access to a couple of private repositories. Everything works as expected (cloning, commit statuses, etc.). Yet when I try to retrieve a list of forks for a repository they have given access to, the response is an empty list. 

 

This does not occur while using OAuth app access, and the documentation makes the permission restrictions pretty explicit. Is there an equivalent for Github Apps? Should I be able to retrieve a list of forks?

 

Just to confirm, we are getting an empty list, not a permission error or something similar.

 

Thanks,

Romain

2 Replies
Community Manager
Message 2 of 3

Re: Retrieving a list of forks while authenticated as a Github App?

Hi Romain,

 

Thank you for being here! Yes, you should indeed be able to call a user to server request when using a user access token to list forks. If you are still having this issue would you be so kind as to contact support@github.com.

 

Best,

Andrea

Mark helpful posts with Accept as Solution to help other users locate important info. Don't forget to give Kudos for great content!

Copilot Lvl 2
Message 3 of 3

Re: Retrieving a list of forks while authenticated as a Github App?


@AndreaGriffiths11 wrote:

Thank you for being here! Yes, you should indeed be able to call a user to server request when using a user access token to list forks.



That's the thing, I'm not using a user access token really, I'm authenticated as a Github App. It works with a regular oauth token, not with an app one. 

 

I've reached out to the suppport, thanks!