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

# Adding GitGuardian as an alert source

> Send GitGuardian secret leak incidents into incident.io to page the right people and open incidents.

GitGuardian finds secrets leaked in your code and raises each one as an incident. Connect it to
incident.io and every GitGuardian incident becomes an incident.io alert, so you can route it to
a team, escalate to whoever is on call, and open an incident when one matters.

| | |
| - | - |
| **Plans** | All plans |
| **Connects with** | An alert source. GitGuardian sends a custom webhook to incident.io when an incident is detected or changes |
| **What you get** | [Alerts](https://docs.incident.io/alerts/getting-started.md) and [alert attributes](https://docs.incident.io/alerts/attributes-and-priorities.md) to route, escalate and declare incidents from |

## Step 1: create the alert source

1. Go to [Alerts](https://app.incident.io/~/on-call/alert-routes/sources) in your incident.io dashboard
   and select the **Sources** tab.
2. Press **Create source**, search for **GitGuardian**, and continue.
3. Give it a name.

The setup page shows a **Webhook URL** to paste into GitGuardian. Keep it open for the next
step.

## Step 2: connect GitGuardian

In GitGuardian:

1. Open the [Custom webhook settings](https://dashboard.gitguardian.com/workspace/~/settings/integrations/custom_webhook)
   and press **Add integration**.
2. On the **Configuration** tab, choose the team whose incidents should alert, and paste the
   **Webhook URL** from incident.io.
3. On the **Events** tab, name the subscription, turn on **Internal monitoring**, tick **New
   incident detected**, **Incident has new occurrence** and **Incident status change**, and
   press **Submit**.

Refer to [GitGuardian's custom webhook documentation](https://docs.gitguardian.com/platform/configure-alerting/notifiers-integrations/custom-webhook)
for details of the payload.

## How alerts behave

* **Title and description.** The alert title is `GitGuardian(#<incident ID>): <detector>`,
  such as `GitGuardian(#31542): Generic Password`. The description adds the severity and
  validity, and the alert links back to the incident in GitGuardian.
* **Deduplication.** New occurrences and status changes for the same GitGuardian incident update
  one alert.
* **Resolution.** The alert resolves when the GitGuardian incident is `resolved` or `ignored`.
* **Attributes.** Use the GitGuardian team, severity or kind of secret to set
  [alert attributes](https://docs.incident.io/alerts/attributes-and-priorities.md), for example to page only for high
  severity leaks.

## Step 3: check it works

In GitGuardian, open the webhook's menu and choose **Send test message**. This creates a real
alert named `GitGuardian(#123): Fake Key` on the alert source page in incident.io within a few
seconds.

If nothing arrives, check **Recent requests** on that page. Every request GitGuardian sent is
listed there, including any that were rejected, with the reason.

***

Can't find the alert source you are looking for? Head to our
[integrations page](https://incident.io/integrations) or message us at
[support@incident.io](mailto:support@incident.io).
