GitHub App setup

Each OpenReview deployment uses its own GitHub App. Register it under GitHub Settings → Developer settings → GitHub Apps.

Use left and right arrow keys to scroll columns. Home shows the first column; End shows the last.

SettingValue
Homepage URLyour APP_URL
Callback URL (user authorization)APP_URL/api/auth/callback
Setup URLAPP_URL/api/github/callback
Webhook URLCONVEX_SITE_URL/github/webhook
Webhook secretGITHUB_WEBHOOK_SECRET
Request user authorization (OAuth) during installationoff. When it is on, GitHub skips the Setup URL and the installation is not linked to a workspace.
Redirect on updateon, so changing repository access on GitHub returns to OpenReview and refreshes the repository list

Repository permissions

The required permissions are:

Two upgrades are optional, and OpenReview skips each feature at runtime when the permission is missing:

Events

Subscribe to:

Credentials

  1. Generate a private key and convert it to PKCS#8:

    openssl pkcs8 -topk8 -nocrypt -in github-key.pem -out app-key.pem
    
  2. Set GITHUB_APP_ID, GITHUB_APP_SLUG, GITHUB_APP_PRIVATE_KEY, GITHUB_WEBHOOK_SECRET, GITHUB_CLIENT_ID and GITHUB_CLIENT_SECRET on the backend.

  3. Copy the client ID and secret to the web app too, because they are used for sign-in.

Keep the private key on server infrastructure only. Installation tokens are minted per request and never stored.

Linking and recovery

Installs started from OpenReview link to the workspace when GitHub returns to the Setup URL, for up to 30 minutes. If the GitHub sign-in token expired meanwhile, OpenReview re-authorizes once without signing you in again.

An installation made directly on github.com, or one that did not return to OpenReview, can be linked from Link an existing installation (on the setup wizard, Repositories and Code providers pages). The page lists this App's installations your GitHub user can see. An installation belongs to one workspace at a time.

When GitHub suspends or uninstalls the App, OpenReview turns off the affected repositories. Unsuspending, or reinstalling and linking again, turns back on the ones that were on, and the index is refreshed.