Question

How to create App Plataform static site from a private Github repository that I don't own

Hi.

TL;DR: I’m trying to create an App platform static site from a client Github repositories in which I’m a collaborator but the repositories are missing in the combobox on the app platform creation.

My client gave me access temporarily to their DO account to setup some static sites. The repositories with the code are in Github and my own account has visibility of them because I’m a collaborator so I can read/write in them. When I go to the App platform creation the only repositories I see are my own, my client repositories are missing. I have given full access to the DO installation in Github so I don’t know what is the problem.

Thanks in advance.


Submit an answer


This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Bobby Iliev
Site Moderator
Site Moderator badge
September 8, 2024
Accepted Answer

Hey there! 👋

What you could try is to make sure that the GitHub App integration on your DigitalOcean account has the correct permissions to access repositories from the organization or the client’s GitHub account.

  1. Go to GitHub Settings: Log into GitHub and navigate to your Settings.
  2. Select Applications: Under Integrations, click on Applications.
  3. Find DigitalOcean: Locate the DigitalOcean GitHub App and click Configure.
  4. Verify Repository Access: Ensure that the repositories from your client’s account are selected for access. If they’re not, you might need your client to reauthorize the DigitalOcean GitHub App on their GitHub account and select the repositories.

If the above permissions are correctly set, but the repositories still don’t show up in the dropdown list on DigitalOcean:

  1. Log in to DigitalOcean: Make sure you’re logged into the DigitalOcean account that has the GitHub integration set up.
  2. Reauthorize GitHub Access: On DigitalOcean, go to Settings > Connected Accounts and reauthorize the GitHub connection. This might refresh the list of repositories.
  3. Ensure Correct GitHub Account is Connected: Double-check that the GitHub account connected to DigitalOcean is the one where you have collaborator access.

UPDATE: Quick update to this thread, as discussed under another thread, the issue was resolved as follows:

The problem was that my client hadn’t installed the DigitalOcean app in the repositories so I couldn’t list them to create App Platform. Resolved.

Hope that helps!

- Bobby.

In order to create an App Platform static site from a private GitHub repository that you do not own, first you must have access the Repository. Make sure that the repository owner has provided you “read” acces at minimum. Then you can Connect your GitHub account to the platform e.g DigitalOcean App Platform and link up private repository with deployed app in App Platform. When connected, App Platform will ask you which repo to deploy. Because it is a private repo, GitHub may ask you to grant certain permissions in order for setups like this. In the next step on selecting the repository configure static site build settings (branch, build command if any) and deploy This triggers the automatic build, deploy and serving of the static site in App Platform based on what is in your repository. Make sure any necessary environment variables or build configurations are set correctly for smooth deployment.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more