For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Requires the Code Analysis licence.

To scan from your own pipeline instead, see CI/CD Integration. For Anypoint Design Center projects, see MuleSoft Anypoint Platform.

How repository scanning works

Step
What happens

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

  1. In Bitbucket, open Workspace settings → OAuth consumers → Add consumer.

  2. Enter a name and the callback URL that IZ Suite shows in the Setup drawer:

    https://izsuite.example.com/oauth/bitbucket/callback
  3. Give the consumer these permissions: Account read, Workspace membership read, Repositories read and Pull requests read.

  4. Save it and copy its Key and Secret.

  1. In GitHub, open Settings → Developer settings → OAuth Apps → New OAuth App.

  2. 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/callback
  3. Register the app, generate a client secret, and copy the Client ID and Client secret.

The callback URL is built from the server address set in Setup's Set the address people use to reach this server step. This app is not the Change Assurance sign-in app, which uses a different callback.

Connect and authorize

Connect your source repositories drawer with Bitbucket selected, the callback URL, permissions, Key, Secret, Default organization and scan options
Connect your source repositories
  1. 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.

  2. Under Where your repositories live, choose Bitbucket or GitHub.

  3. Enter the app's details:

    Field
    Description

    Key / 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.

  4. Click Save.

  5. Under Check it worked, click Authorize access. Bitbucket or GitHub opens in a new tab.

  6. 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:

Job type
What it does

Repository sync

Discovers new repositories, branches and Bitbucket pull requests.

Repository scan

Scans the enabled repositories and branches.

  1. Open Administration → Setup and click Set up on Turn on repository assessments (or Configure scan schedules in Manage Scanning).

  2. Under What to assess, keep Repository scan and Repository sync.

  3. Under When should this work run?, choose One time or Recurring and the interval.

  4. 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:

  1. Open Administration → Setup and click Set up on Scan pull requests from Bitbucket.

  2. Turn on Scan pull requests.

  3. Enter a Webhook secret, or click Generate a secret and copy it.

  4. Click Save.

  5. 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.

Bitbucket lists every delivery under the webhook's View requests. A 401 answer means the secrets differ; a 403 means no secret is saved in IZ Suite. The server address must be reachable from Bitbucket.

Where the results appear

What
Where

Repositories and their eligibility

Branches, their quality gates and findings

Pull requests

Sync and scan runs

Next steps

Last updated

Was this helpful?