Using GitHub Apps to manage access to private repositories across organizations is indeed a more secure and scalable approach compared to using service accounts and SSH keys. GitHub Apps offer granular permissions, better security controls, and automated workflows. Here's a step-by-step guide on how to achieve this:
- Create the GitHub App in Org1:
- Go to the Settings of Org1.
- Select Developer settings and then GitHub Apps.
- Click New GitHub App.