In my understanding; a Github app can be installed in multiple orgs, but it is only possible to be authenticated with a single org at a time. With a script or application you can work with multiple orgs be re-authing.
However, given my understanding of authentication is correct, is it possible to perform an action that requires authentication with multiple orgs at the same time. From the situation I’m encountering (described below) it would seem that it is not.
I have two organizations;
org2. In each org there is a private repo;
org2:repo1 is forked from
I want to create a PR for
org1:repo1. The app is authenticated with
I always recieve a “422: not all refs are readable” error when trying to create the PR. The app is installed on both orgs and I’ve checked that I can make a PR inside each org.
It seems like the app needs to read from
org2, but since the repo is private and the app is not authenticated with that org, it is not able to read the repo and I get this error.
Is this a known limitation or is there some way to work around this?
Does it matter if
org2 is an actual organization or a personal user account?