Git providers

Connect your code host once per team, so every app can clone from it.

Settings -> Git, then Connect. It needs the manage_git capability.

  • GitHub connects as a GitHub App: click, approve on GitHub, nothing to copy. See GitHub.
  • GitLab, Bitbucket, Gitea / Forgejo and plain Git connect as a git connection, marked Beta: one stored token per host, your own instance included. See Git connections.

Tokens are encrypted and never returned by the API.

What each connection unlocks

GitHub AppGitLab, Bitbucket, GiteaPlain Git, or a Repository URL
Repository picker and branch listyesyesno
Deploy on pushyesyesno, use the deploy hook
Pull request previews and commentsyesnono
Railpack downloads past GitHub's anonymous limityesnono

In the new-app wizard, GitHub has its own tile. Every other host is in the Provider menu of the Git tile, which can also Connect a git provider on the spot.

Good to know

  • One GitHub App per GitHub account or organization. Connect once for each, so a personal account and an organization live side by side.
  • Connections are re-checked every 12 hours. A revoked token, a GitLab token that expires within 7 days, or a lost permission raises the Git connection stopped working or Git provider is missing access alert, both on by default.
  • Push webhooks are registered for you, and removed when no app deploys that repository anymore.
  • A token is per host, not per repository. Limit its scope on the provider's side.

Troubleshooting

SymptomWhat to check
No repositories accessible to this App.Click Configure repository access on GitHub and add the repository.
Authentication failed in a cloneThe token expired or was revoked. Test connection in the connection's menu confirms it.
Pushes do not deployThe app's Settings -> Deployments shows Deplo could not add the push webhook with the reason.
Address must not point at a private or internal addressOnly an instance admin can connect a host on a private network.

More in Deploys and builds.

Next steps

Did this page help you?

On this page