Integrations

Code hosts

GitHub, GitLab, and Bitbucket.

Connect a code host to run white-box scans and code reviews, read dependencies, and open fix pull requests. Add one from Settings → Integrations.

The Integrations page filtered to the available code hosts.

Supported

  • GitHub
  • GitLab
  • Bitbucket

Each connection lets you choose which repositories Interopt may scan, and lets the agent open a pull request against them.

Permissions

What Interopt asks each host for, and what it uses it for:

Used forGitHub appGitLabBitbucket
The connecting accountMetadata: readread_useraccount
Reading code and dependenciesContents: readread_repositoryrepository
Pushing fix branchesContents: writeapirepository:write
Opening fix pull requestsPull requests: writeapipullrequest:write
CI results on fix pull requestsChecks: readapiwebhook
Pull request reviews: the check, comments and repliesChecks: write, Pull requests: write, Issues: writeapirepository, pullrequest
Deploy eventsContents: read, Deployments: readapiwebhook
Issues for findingsIssues: writeapiNot used
Registering webhooksNot neededapiwebhook

What a connection can reach:

  • GitHub: the repositories you select when installing the app.
  • GitLab: every project the connecting account is a member of. Merge requests, issues and webhooks all need GitLab's api scope, and GitLab offers no narrower scope that covers them. Connect with an account that is a member of only the projects you want scanned, with the Maintainer role on them so Interopt can add the project webhook.
  • Bitbucket: the repositories in the connected workspace that the connecting account can access.

Who can connect

In Interopt, connecting a code host needs the owner or admin role. On the host:

HostWhoWhy
GitHub, organizationAn organization owner, or a repository admin for the repositories they administerGitHub only lets these install an app. An owner can turn off installs by repository admins; other members can request the install, and GitHub notifies the owners.
GitHub, personal accountThe account's ownerOnly the owner can install apps on a personal account.
GitLabAn account with the Maintainer role on each project to scanDeveloper is enough to read code, push fix branches and open merge requests, but GitLab only lets maintainers add the project webhook.
BitbucketAn admin of the Bitbucket workspace, with write access to the repositories to scanBitbucket only lets workspace admins add the workspace webhook. Write access is what lets Interopt push a fix branch.

If the account can't add the webhook, the repository still connects and can be scanned, but merges, tags and CI results don't reach Interopt: scans set to run on every deploy don't start, fix pull requests don't show their checks, and pull requests aren't reviewed.

Deploy events

A connected host also tells Interopt when you ship, which is what starts scans scheduled to run on every deploy.

EventGitHubGitLabBitbucket
Production deployment succeedsYesYesNo
Merge to a branchYesYesYes
Release or tag publishedYesYesYes

Interopt registers what it needs when you add a repository; there is nothing to set up on the host. Which of these count as a deploy is up to you; see What counts as a deploy.

On this page