Report this

What is the reason for this report?

Digital Ocean Preview Deploy on PR getting github user permission error

Posted on December 29, 2025

My DO App platform is able to access github private repo during deploy but my github workflow for ./deploy_preview is failing due to

failed to deploy: failed to create app: POST https://api.digitalocean.com/v2/apps: 400 (request “28f76531-e905-48af-8c01-e585c854bcb0”) GitHub user does not have access to gouravsaha/hostara-fast-backend Have verified github app integration shows that github access is on for all repositories.



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!

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.

Heya, @f9ccf41c1c3743eb9a1071f9dae7a7

The 400 code usually means the GitHub identity tied to the DigitalOcean App Platform connection is not the same user/token your GitHub Action is deploying with. That identity doesn’t have permission to the private repo (even if your main app deploy does).

The quickest fixes people have success with are: re-create the DO “GitHub App” connection while logged in as the GitHub user that actually owns/has access to the repo, or change the workflow to deploy using a DO API token that belongs to an account/team member who has the repo installed/authorized in the DO GitHub integration. Also, double-check the repo name/owner in the error is exactly correct (no rename, transfer, or org fork mismatch), because DO treats those as a different repo and will say “user does not have access”.

Regards

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.