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!
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
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.