Github App installation not visible to collaborators of User Repository

I have a public Github App that I’m developing, and I’ve noticed something odd and unexpected about the permissions model. 

I’ve installed the Github App selectively on a handful of Organization repositories and a couple of repositories that exist directly under my user. 

All of these repositories are also “shared” with another user. This secondary has been manually added as a collaborator for the organization repositories, as well as my personal repositories. 

Using the Github api, when I (on my AnalogJ account) query for all installations for my user, I get the correct number: my organizations + my personal account. 

However, when I the secondary user queries for all installations, he is unable to see the AnalogJ installation (that even though he’s a collaborator on some repositories within) and can only see the Organizations where he’s been added as a collaborator (again, hes only a collaborator on a subset of repositories within the Org). 

I hope that made sense. 

Thanks for reaching out.

I’ve attempted to replicate what you’re describing but haven’t been able to. Rather than using the API, I looked at the list of installed Github Apps at https://github.com/settings/installations for each user. Here’s what I tried:

With a test repository under my lee-dohm account:

  1. Verified that the repository had an App installed on it
  2. Checked the list of installed GitHub Apps on my test user account
  3. Invited my test user account as a collaborator to the repository
  4. Accepted the collaboration invitation
  5. Checked the list of installed GitHub Apps on my test user account

With a test organization owned by my test user account:

  1. Created a test repository
  2. Installed a GitHub App on the organization with access only to the test repository
  3. Checked the list of installed GitHub Apps on my main user account
  4. Invited my main user account as a collaborator on the test repository
  5. Accepted the collaboration invite
  6. Checked the list of installed GitHub Apps on my main user account

In both cases, the list of installed GitHub Apps did not change. This is the expected behavior because, while a collaborator has access to the repository, the GitHub App’s installation is not managed by the collaborator.

If you can supply more information on how exactly to reproduce the problem you’re seeing, I can investigate further.