Documentation
Connect GitHub
Deploy GitHub repositories with the one-click GitHub App, OAuth or a personal access token, with auto-deploys, commit statuses and pull request previews.
Rebasable deploys any GitHub repository you give it access to. Every push to the branch deploys, every pull request can get a preview, and each commit gets a rebasable/<service> status check.
Option 1: the GitHub App (recommended)
- Open Settings → Git providers in the dashboard and click Connect on the GitHub card (or pick GitHub under Where is your code? when you create a service).
- Click Install GitHub App and choose your account or organization.
- Pick All repositories or only the ones you want to deploy.
That’s it. GitHub sends push and pull request events to Rebasable instantly, so deploys start a few seconds after git push. To add or remove repositories later, click Configure next to the installation.
The App only asks for what deploys need: read access to code and metadata, and write access to commit statuses, deployments and pull request comments (for previews).
Option 2: OAuth or a personal access token
Use this when you can’t install apps on an organization, or for a quick test.
- OAuth: in the Connect dialog choose Sign in (OAuth) and approve Rebasable on github.com.
- Personal access token: choose Access token and paste a token with the scopes
repoandadmin:repo_hook(create one). Fine-grained tokens work too: give them Contents (read), Metadata (read), Webhooks (read and write), Commit statuses (read and write) and Pull requests (read and write).
When you link a repository through OAuth or a token, Rebasable registers a webhook on that repository for you. If it can’t (for example the token lacks admin rights on the repo), the service still syncs: Rebasable checks the branch every 60 seconds instead and tells you so under Settings → Source.
Deploy a repository
In New service, pick GitHub, choose the account, search for the repository and pick the branch. The Source section of the service shows how it syncs:
- Webhook (instant): deploys start within seconds of a push.
- Polling every 60 s: used when no webhook could be registered.
From the CLI:
rebasable git connect github # OAuth in your browser
rebasable services create --repo github:acme/web --branch main
Self-hosting Rebasable: register the OAuth app
On your own Rebasable installation, a platform admin creates the GitHub App from Admin → GitHub in one click. For OAuth, create an OAuth app at github.com/settings/applications/new with this callback URL:
https://dashboard.rebasable.com/api/v1/git/oauth/github/callback
The dashboard shows the exact URL for your installation, with a copy button, in the Connect dialog.
Troubleshooting
- The repository is missing from the list: the GitHub App is not installed on it. Click Add repositories (or Configure) and select it.
- Pushes don’t deploy: check Settings → Source → Auto-deploy is On every push, and that the push was to the linked branch. Sync now checks the branch immediately.
- “The git host rejected the token”: the token expired or was revoked. Reconnect the account in Settings → Git providers.