Deploying User's Private GitHub Repositories on Railway
jagadeesh507
PROOP

10 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?

Solved

3 Replies

itsrems
EMPLOYEE

10 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 10 months ago


jagadeesh507
PROOP

10 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 10 months ago


itsrems
EMPLOYEE

10 months ago

Not 100% sure your use case is possible today.

Sounds like you essentially have 3 distinct connections:

  1. [your github] <> [railway's github app] <> [your account]

  2. [your user's github] <> [your github app]

  3. [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 10 months ago


Railway
BOT

4 months ago

This thread has been marked as solved automatically due to a lack of recent activity. Please re-open this thread or create a new one if you require further assistance. Thank you!

Status changed to Solved Railway 4 months ago


Loading...