Source Repositories
Code Analysis can scan your Bitbucket and GitHub repositories without any change to your pipelines. IZ Suite signs in with an OAuth app you register, discovers your repositories and branches, and scans the ones you enable on a schedule. Bitbucket pull requests can be scanned as soon as they are opened or updated.
To scan from your own pipeline instead, see CI/CD Integration. For Anypoint Design Center projects, see MuleSoft Anypoint Platform.
How repository scanning works
1. Register an OAuth app
You register an OAuth app in Bitbucket or GitHub with IZ Suite's callback URL, and save its ID and secret in IZ Suite.
2. Authorize
You authorize the app in Bitbucket or GitHub and choose the workspaces to bring in. IZ Suite keeps the access fresh from then on.
3. Repository sync
The sync discovers the repositories and branches of the authorized workspaces (and Bitbucket pull requests) and files new repositories under the default organization.
4. Eligibility
You choose which repositories and branches are scanned, or let IZ Suite scan every discovered one.
5. Repository scan
The scan checks out each enabled repository and branch, detects its languages and runs their rules.
6. Review
Findings and quality gates appear per branch and pull request in Code Analysis.
Register the OAuth app
In Bitbucket, open Workspace settings → OAuth consumers → Add consumer.
Enter a name and the callback URL that IZ Suite shows in the Setup drawer:
https://izsuite.example.com/oauth/bitbucket/callbackGive the consumer these permissions: Account read, Workspace membership read, Repositories read and Pull requests read.
Save it and copy its Key and Secret.
In GitHub, open Settings → Developer settings → OAuth Apps → New OAuth App.
Enter a name, your IZ Suite address as the homepage URL, and the authorization callback URL that IZ Suite shows in the Setup drawer:
https://izsuite.example.com/oauth/github/callbackRegister the app, generate a client secret, and copy the Client ID and Client secret.
Connect and authorize

Open Administration → Setup and click Set up (or Review) on Connect your source repositories. You can also open it from Workspaces → Code Analysis → Manage Scanning → Manage → Bitbucket connection & discovery or GitHub connection & discovery.
Under Where your repositories live, choose Bitbucket or GitHub.
Enter the app's details:
FieldDescriptionKey / Client ID
The OAuth app's ID. Required.
Secret / Client secret
The OAuth app's secret. Stored encrypted.
Default organization
The organization the first repository sync files discovered repositories under. You can move them later. Required.
Scan every discovered repository
New repositories are switched on for scanning as they are discovered.
Scan every discovered branch
New branches of scanned repositories are switched on for scanning as they are discovered.
Click Save.
Under Check it worked, click Authorize access. Bitbucket or GitHub opens in a new tab.
Approve the app, then choose the workspaces to bring in on the page IZ Suite returns you to. The first repository sync starts.
If Bitbucket or GitHub no longer accepts the saved access (it was revoked or replaced), the drawer and Manage Scanning show Reconnect: click Authorize again to resume syncing.
Choose what is scanned
Open Workspaces → Code Analysis → Manage Scanning and choose the Bitbucket or GitHub tab:
Tick repositories and click Enable selected or Exclude selected. When you enable them, choose their organization and optionally queue a one-time scan.
On the Bitbucket tab, turn on Automatically scan all repositories to scan every current and future repository of the connection.
Excluding a repository stops future scans of it and its branches; its existing results are kept. See Manage Scanning.
Schedule the sync and the scans
Two job types do the work, each scheduled per platform:
Repository sync
Discovers new repositories, branches and Bitbucket pull requests.
Repository scan
Scans the enabled repositories and branches.
Open Administration → Setup and click Set up on Turn on repository assessments (or Configure scan schedules in Manage Scanning).
Under What to assess, keep Repository scan and Repository sync.
Under When should this work run?, choose One time or Recurring and the interval.
Click Turn on assessments.
Each scheduled type shows its current timing (for example On · Every hour) with Edit schedule. See All Schedules.
Scan pull requests
With Bitbucket, IZ Suite can scan a pull request as soon as it is opened or updated:
Open Administration → Setup and click Set up on Scan pull requests from Bitbucket.
Turn on Scan pull requests.
Enter a Webhook secret, or click Generate a secret and copy it.
Click Save.
In each Bitbucket repository, open Repository settings → Webhooks → Add webhook, enter the URL the drawer shows and the secret, and choose the triggers Pull request created, updated, merged and declined.
Pull requests are scanned only in repositories enabled for scanning. A pull request is judged on the code it adds compared with its target branch, so scan your main branches first. For the details, and for pull-request scans from your pipeline, see Pull Request Analysis and Pull Requests.
Where the results appear
Repositories and their eligibility
Branches, their quality gates and findings
Pull requests
Sync and scan runs
Next steps
Supported Languages: what each scan detects and checks.
Manage Scanning: enable or exclude repositories.
Pull Request Analysis: scan pull requests from webhooks and pipelines.
Supported Platforms: back to the platform overview.
Last updated
Was this helpful?

