> ## Documentation Index
> Fetch the complete documentation index at: https://docs.corgea.app/llms.txt
> Use this file to discover all available pages before exploring further.

# Wiz

> Send Corgea scan findings to Wiz after every full scan

Corgea's Wiz integration sends the findings of every full scan to your Wiz tenant. They appear in Wiz on the matching repository branch, next to your cloud findings, through Wiz Unified Vulnerability Management (UVM).

> [!NOTE]
>
> The Wiz integration is enabled per organization and is off by default. Contact [support@corgea.com](mailto:support@corgea.com) to turn it on for your account. Until it is enabled, there is no Wiz entry on the Integrations page.

## Prerequisites

* A Wiz tenant with Unified Vulnerability Management (UVM) enabled
* The repositories you scan with Corgea connected to Wiz through a Wiz version control connector. Wiz only accepts findings for repository branches it already knows.
* A Wiz service account with the scopes `create:external_data_ingestion` and `read:system_activities`
* The **Manage Integration** permission in Corgea to connect, edit, or delete the connection, and **View Integration** to see it (see [Roles](https://docs.corgea.app/permission_groups.md))

Repositories on GitHub, GitLab, Azure DevOps, and Bitbucket Cloud are supported.

## Setting up the Integration

**1. Create a Wiz service account**

In Wiz, create a service account for a custom integration and give it the scopes `create:external_data_ingestion` and `read:system_activities`. Copy the **Client ID** and **Client Secret**. Wiz shows the secret only once.

Note your tenant's **API Endpoint URL** and **Authentication URL**. Wiz lists both under **Tenant Info**.

**2. Open the Wiz page in Corgea**

Log in to your Corgea account, go to **Settings → Automation → [Integrations](https://www.corgea.app/settings/integrations/)**, find "Wiz" under **Security Platform Integrations**, and click "Add".

**3. Connect Wiz**

Click "Connect Wiz" and enter the following details:

* **API endpoint URL**: Your tenant's GraphQL endpoint, for example `https://api.us1.app.wiz.io/graphql`
* **Authentication URL**: `https://auth.app.wiz.io/oauth/token` for most tenants
* **Client ID**: The service account's client ID
* **Client secret**: The service account's client secret

Both URLs must be HTTPS addresses on `wiz.io` or `wiz.us`.

**4. Save**

Click "Save". Corgea signs in to Wiz with these details before saving, so wrong credentials or a missing scope are reported in the dialog and nothing is stored.

> [!NOTE]
>
> Corgea stores the client secret encrypted and never displays it again after you save it. To change other details later, leave the secret blank and the stored one is kept.

## What Corgea Sends

Once Wiz is connected, no further action is needed. Findings are sent after every full scan, on any branch.

| | |
| - | - |
| **Sent** | SAST, Logic & Auth, Secret, and Dependency findings |
| **Not sent** | IaC, Container, and Code Quality findings |
| **Scans that sync** | The newest full scan of a branch. Pull request scans and scans of a subset of files do not sync. |
| **Statuses** | Every finding that is not Fixed, False Positive, or Accepted Risk |

Each upload replaces what Wiz holds for that branch. When a finding is fixed or triaged in Corgea, it is left out of the next upload and Wiz resolves it. Every finding in Wiz links back to the finding in Corgea.

For secrets, Corgea sends the type of secret and its location. The secret value is never sent.

> [!NOTE]
>
> Wiz expects regular uploads. If a branch has no full scan for about a week, Wiz may remove its Corgea findings until the next full scan.

## Checking the Sync Status

Each scan that was sent shows a Wiz status at the top of its scan page, next to the branch and commit.

| Status | Meaning |
| - | - |
| **Syncing** | Corgea sent the findings and Wiz is processing them. |
| **Synced** | Wiz accepted the findings. Hover over the status to see when, and how many findings were sent. |
| **Not synced** | The findings are not in Wiz. Hover over the status to see why. |

Common reasons for **Not synced**:

* **Wiz could not match the repository branch.** Connect the repository to Wiz, then run another full scan.
* **Wiz did not accept the upload.** Open the Wiz page in Corgea and click "Test connection" to check the credentials.
* **Daily limit.** Wiz processes about three uploads per branch per day. A later full scan will sync.
* **Too many findings.** A scan with more than 25,000 findings of one kind is not sent.

Scans that are not sent show no status: pull request scans, scans of a subset of files, older scans of a branch, and scans of projects without a repository on a supported host.

After a scan shows **Synced**, new findings can take some time to appear in Wiz.

## Managing the Connection

On the Wiz page in Corgea you can:

* **Test connection**: Check that the stored credentials still work.
* **Edit**: Change the URLs or credentials.
* **Delete**: Remove the connection. Corgea stops sending findings to Wiz from the next scan.

## Limitations

* One Wiz connection per organization.
* The integration is one-way. Status changes made in Wiz are not brought back into Corgea.
* Triage statuses are not sent as statuses. A finding marked Fixed, False Positive, or Accepted Risk in Corgea is left out of the next upload, and Wiz shows it as resolved.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.