What Norma can do — and cannot do #
Norma connects to Bitbucket Cloud through OAuth. It reads the code of the repositories you choose, and it never writes to that code. You can connect both public and private repos. Bitbucket Server (self-hosted) is not yet supported.
When you authorise Norma on Bitbucket, Norma can:
- Read source files in the repositories your account or workspaces grant access to.
- List your repositories and branches (to populate the picker when you add a new repo).
- Add one webhook, named Norma — merge scans, to each repository you import, so that Norma knows about pushes and pull requests. Norma removes it when you remove the repository.
- Read your pull requests, and write and delete its own comment on them with the result of the Norma check.
Norma cannot:
- Push commits, open or merge pull requests, or change your code in any way.
- Access repositories outside the Bitbucket workspaces you authorised.
- Read your personal email, billing, or admin settings.
- Persist your code beyond the duration of a scan — clones are deleted as soon as the scan finishes.
Connecting for the first time #
- From the Repositories page, click + Add Repository in the top right.
- Click Connect Bitbucket. You’re redirected to
bitbucket.orgto authorise Norma. - On the Bitbucket authorisation screen, review the permissions requested and click Grant access.
- You’re back in Norma on the Select repository screen, which lists every repository Norma can now see across your authorised Bitbucket workspaces.
- Pick a repository to scan first.
The Bitbucket connection is saved at the Norma workspace level, so subsequent + Add Repository flows skip straight to picking a repo.
Use a service account for the connection #
Bitbucket has no bot user for an OAuth integration. Norma therefore writes its pull request comments as the Bitbucket user who connected Bitbucket in Norma. If you connect with your own account, every Norma comment shows your name.
We recommend a dedicated Bitbucket account for Norma:
- Create a Bitbucket account for Norma, for example
norma-bot. - Give it access to the Bitbucket workspaces and repositories that Norma must analyse. It needs to read the repositories and to comment on their pull requests.
- Sign in to Bitbucket with that account, then click Connect Bitbucket in Norma.
The comments then show the service account, not a person. If somebody else connects Bitbucket later, the new comments show that user.
Bitbucket workspaces vs Norma workspaces #
Bitbucket organises repositories under workspaces (which used to be called “teams”). Norma also has the concept of a workspace, but they’re separate things:
- A Bitbucket workspace is a group of repositories on Bitbucket — e.g.
acme-engineering. - A Norma workspace is a group of Norma repositories — e.g. your
Personalworkspace, or anAcme Engineeringworkspace on a Pro plan.
When you authorise Norma on Bitbucket, you can grant access to one or more Bitbucket workspaces. Repositories from any of them can then be added to any Norma workspace you belong to. The mapping is many-to-many.
Adding more repositories later #
If Norma already has a Bitbucket connection in this workspace, + Add Repository skips OAuth and goes straight to the Select repository screen.
If the repository you want is missing, the most common reason is that you haven’t granted Norma access to the Bitbucket workspace it lives in. Re-run the connection flow and add the missing workspace.
Changing which workspaces or repositories Norma can see #
- Go to bitbucket.org → Personal settings → Application authorizations.
- Find Norma in the list.
- Click Revoke, then re-authorise from Norma if you want to change the workspace scope.
Bitbucket doesn’t expose per-repository fine-grained access for OAuth apps the way GitHub does, so revoke-and-reconnect is the way to change scope.
Revoking Norma’s access #
To remove Norma’s access entirely:
- bitbucket.org → Personal settings → Application authorizations.
- Click Revoke next to Norma.
Norma stops being able to read any Bitbucket code. Existing scan history is preserved; no future scans will run until you reconnect.
Troubleshooting #
The repository I want is not in the picker.
The repository’s Bitbucket workspace isn’t authorised. Revoke and re-authorise; on the consent screen, make sure the right workspace is included.
OAuth fails with “Could not connect to Bitbucket”.
Most often this is a cookie or multi-account issue. Try in an incognito window. Atlassian SSO can also interfere if your account is part of an enterprise Atlassian organisation — talk to your IT admin.
A scan fails with a permissions error.
You’ve revoked Norma’s access since the repository was imported. Re-authorise on Bitbucket.
I have Bitbucket Server / Data Center (self-hosted), not Bitbucket Cloud.
Self-hosted Bitbucket isn’t supported yet. If you need it, get in touch — it’s on the roadmap.
Related #
- Connect GitHub — the parallel walkthrough for GitHub.
- Repositories overview — what to do once you’ve connected your first repo.
- Repository providers — the high-level reference covering all providers.