3 months ago
We are using a GitHub App to access users' GitHub repositories. However, when attempting to deploy private repositories on Railway, we encountered issues. Is there a way to deploy users' private GitHub repositories on Railway while using a GitHub App?
3 Replies
3 months ago
Heya, you can deploy private repositories as long as you allow access to the railway app.
When you say "user's github repositories", do you mean repos that are not directly yours ? you would need to get access to them on the owner account to authorize them on the railway app.
Let me know if this helps
Best,
Nico
Status changed to Awaiting User Response railway[bot] • 3 months ago
3 months ago
Hello Nico,
Yes, the repositories are not directly ours. Developers can connect their GitHub account to our application and access both public and private repositories, but deploying private repositories requires granting access to Railway from the repository owner's account.
best,
Jagadeesh
Status changed to Awaiting Railway Response railway[bot] • 3 months ago
3 months ago
Not 100% sure your use case is possible today.
Sounds like you essentially have 3 distinct connections:
[your github] <> [railway's github app] <> [your account]
[your user's github] <> [your github app]
[you user's github] <> [railway's github app] <> [their account]
In order to deploy a github repo on railway, the deploying user must have authorized railway to access the repo. The only scenario where you can deploy a repo you didn't add is for github organizations. Only if you are in the repo and authorize the railway app to access it will you be able to deploy the customer's repo.
Hope this makes sense !
Best,
Nico
Status changed to Awaiting User Response railway[bot] • 3 months ago