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.

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 for | GitHub app | GitLab | Bitbucket |
|---|---|---|---|
| The connecting account | Metadata: read | read_user | account |
| Reading code and dependencies | Contents: read | read_repository | repository |
| Pushing fix branches | Contents: write | api | repository:write |
| Opening fix pull requests | Pull requests: write | api | pullrequest:write |
| CI results on fix pull requests | Checks: read | api | webhook |
| Pull request reviews: the check, comments and replies | Checks: write, Pull requests: write, Issues: write | api | repository, pullrequest |
| Deploy events | Contents: read, Deployments: read | api | webhook |
| Issues for findings | Issues: write | api | Not used |
| Registering webhooks | Not needed | api | webhook |
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
apiscope, 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:
| Host | Who | Why |
|---|---|---|
| GitHub, organization | An organization owner, or a repository admin for the repositories they administer | GitHub 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 account | The account's owner | Only the owner can install apps on a personal account. |
| GitLab | An account with the Maintainer role on each project to scan | Developer is enough to read code, push fix branches and open merge requests, but GitLab only lets maintainers add the project webhook. |
| Bitbucket | An admin of the Bitbucket workspace, with write access to the repositories to scan | Bitbucket 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.
| Event | GitHub | GitLab | Bitbucket |
|---|---|---|---|
| Production deployment succeeds | Yes | Yes | No |
| Merge to a branch | Yes | Yes | Yes |
| Release or tag published | Yes | Yes | Yes |
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.