Connect GitHub

Connect Oplane to your GitHub repositories to enable automated threat modeling on pull requests. The setup takes just a few minutes.

Step 1: Open Workspaces

Navigate to Workspaces in the left sidebar and click the + Workspace button in the top right corner.

Oplane Workspaces page showing all workspaces
Zoomed view of the + Workspace button

Step 2: Create a Managed Workspace

Select Managed Workspace and under Git Repository, click Continue with Github to connect your account.

Create new workspace with Managed Workspace selected, showing Git provider sign-in options

Step 3: Sign in to GitHub

You'll be redirected to GitHub to sign in. Enter your credentials or use one of the alternative sign-in methods (passkey, Google, Apple).

GitHub sign-in page

Step 4: Install the Oplane GitHub App

GitHub will prompt you to install the Oplane Bot on your account or organisation. Choose which repositories Oplane should have access to, review the permissions, and click Install.

GitHub App installation showing repository selection and permissions for Oplane Bot

Permissions granted: Read access to code, issues, and metadata. Read and write access to checks and pull requests — this is how Oplane posts review comments on your PRs.

Step 5: Select a Repository

Back in Oplane, select your organisation from the dropdown and search for the repository you want to connect.

Workspace creation showing organisation dropdown and repository search

Step 6: Configure the Workspace

Once connected, configure your workspace settings:

  • Analyse Pull Requests — Enable to automatically threat model every PR. If disabled, you can still trigger reviews by mentioning @oplane in a PR comment.
  • Access — Add team members who should have access to this workspace.

Click Create when ready.

Workspace configuration showing connected repository, PR analysis toggle, and access settings

Step 7: Choose Threat Models

Oplane analyses your repository and suggests threat models based on the codebase. Select the ones relevant to your project, or describe your own scope. This step helps Oplane understand what to focus on in future PR reviews.

Workspace setup suggesting threat models based on repository analysis

What's next? Learn how Oplane reviews your pull requests in the Pull & Merge Requests guide.