Turn policy breaches into incidents
A policy breach tells you a credential is at risk. It does not tell anyone to fix it: a breach has no owner, no status, and no way to close.
Set the policy to create incidents, and every credential that breaches it opens a regular secret incident: the same object Internal Monitoring opens when a secret leaks in a repository, a CI pipeline, or a messaging tool, and the one your teams already work in to remediate. Same page, same severity, same assignment, same notifications and webhooks. There is no second incident queue to learn and no separate kind of incident: breached policies are a tag and a filter on the incident.
Choose what each policy produces
Go to Settings > Secrets > Policies. The page has two cards, one per kind of risk:
- Secrets Exposure: the secret is already somewhere it should not be. Publicly leaked when its hash matches a public leak known to HasMySecretLeaked, Internally leaked when it also sits in a repository, a pipeline, or a messaging tool you monitor, and Endpoint leaks when Endpoint Protection finds it on a developer machine.
- Secret Hygiene: the secret is where it belongs, but the way it is managed puts it at risk. Every other NHI policy is here, from Cross environment secret to Overprivileged identity.

Publicly leaked and every Secret Hygiene policy have one of three modes:
| Mode | What the policy does |
|---|---|
| Not visible | The policy is not evaluated. Its breaches leave the inventory, the risk score, the analytics, and the notifications. |
| Visible as a tag | Breaches show as a tag on the inventory. This is the default. |
| Visible and creating incidents | Breaches open an incident automatically, on top of the tag. |
A policy that creates incidents also lists the environments it applies to. By default only a credential breaching in production opens an incident; pick other environments to widen it. Policies with a threshold, such as Long lived secret, take it on the same row. Changes stay a draft until you save the card, and every change is recorded in the audit log.
The two other exposure policies work differently:
- Internally leaked is always on and has no mode to set: its breaches already have an incident, so the policy adds the credential's places to it instead. See What is not promoted.
- Endpoint leaks is a switch with a Minimum risk level: Critical, High, Medium, or Low. Turn it on and every secret the Endpoint protection > Secrets page shows at or above that level opens an incident, the ones already found included, each with its notification. Filter that page on the level first to see what you are about to create. Lowering the level later promotes the secrets at the levels it adds. Turning the switch off keeps the incidents it created.
Only credentials that breach Publicly leaked or a Secret Hygiene policy after you set it to Visible and creating incidents open an incident. A breach that is fixed and comes back counts as new. Turning the policy off and on again, or changing its environments, restarts the count.
Create an incident yourself
For a breach already in your backlog, or a credential that breaches nothing yet:
- In the Identities inventory, select the identities and choose Create incidents. The Incident column then links to the incident.
- On an identity page, click Create incident.
- For a secret found on a developer machine below your Endpoint leaks level, use Create incident on the Endpoint protection > Secrets page.
A credential that already has an incident links to it instead. Can't create incident means the credential is not promotable, for one of the reasons in What is not promoted.
What the incident carries
One credential, one incident. Every place the credential lives becomes an occurrence: a vault path, a Kubernetes secret, a cloud key. If the same secret also leaked in a repository, its vault and cluster places join that existing incident instead of opening a second one, so one rotation closes the whole picture.
On top of what every incident has, these incidents carry:
- A severity from the policy risk: critical for a publicly leaked secret, down to low for a long lived one. The severity is rescored when the breaches change, and a severity you set by hand is kept.
- Validity from ggscout, checked next to the secret. A credential checked as invalid is handled like any revoked secret.
- A Secret Hygiene section, in the Locations tab, listing every policy the credential breaches, open and fixed, with the places that still breach, their role (secrets manager, consumer, provider) and their environment. Filter it by path, source, environment, or policy, and open each place in its vault. It tells you which consumers to redeploy before you revoke.
- A runbook per policy in How to remediate: what each breached policy means, why it matters, and one merged list of steps, from involving the developer to revoking the old value.
- The credential's analysis from ggscout: owner, scopes, and risks, since GitGuardian never holds the value itself.

The side panel explains why the secret was flagged and adapts the runbook to the breached policies, here a long lived and overprivileged AWS key:

The NHI context on an incident is visible to anyone who can view the incident. The inventory itself stays with workspace owners and managers.
Find them and route them
- The incident type shows the breached policies, in the incidents list and as chips on the incident. Filter the list on a breached policy to work one policy at a time, or on the NHI Source source type to isolate every promoted incident. An incident that holds both a repository and a vault occurrence matches either source type.
- Search by source name to pull up everything stored in a given vault, cluster, or cloud account.
- Notifications, webhooks, and tickets fire as they do for any new incident, and name the breached policies: a Breaches line in Slack and Microsoft Teams, an
nhi_policy_namesfield in webhook payloads, and a{breachedPolicies}variable in Jira and ServiceNow templates. Notification rules can filter on the breached policy, so one channel can take publicly leaked credentials and another the rest.

These incidents go through the incident API and the incident_* webhooks like any other. An integration that does not filter on source type starts receiving them.
Resolution follows the inventory
GitGuardian keeps the incident in step with the credential:
- Resolved when every breach of the credential is fixed and the secret sits nowhere outside your NHI sources. This is the Auto-resolution of NHI incidents playbook, on by default. A secret still in a repository keeps its incident open, because history, forks, and clones all keep it. The resolution comes 3 hours after the last fix, so a collection that misses a source does not close incidents nothing fixed. Two incidents never resolve on their own: one you created for a credential that breaches no policy, and one whose only breaches belong to a policy you later set to Not visible.
- Reopened when a breach comes back. Only a resolution GitGuardian made is reopened: a resolution you made is never undone, and a credential checked as invalid stays resolved whatever its breaches do.
- Marked as removed when a credential is no longer found at a place. The occurrence reads as removed and the validity keeps its last verdict and date, instead of showing a value nobody can check anymore.
A breach is fixed when the policy stops matching. Deleting a vault entry, or removing a copy from one environment so the cross environment policy no longer applies, clears the breach while the credential still works at its provider. Revoke it at the provider to make it safe.
What is not promoted
- Credentials collected by an older ggscout. An incident needs a detector and the secret hash, which ggscout sends from 0.33.0, and the validity on the incident needs 0.34.1. Upgrade to ggscout 0.34.1 or later: the next fetch classifies and hashes what you already collect. A secret that no detector matches stays a tagged breach in the inventory whatever the version.
- Identities without a credential. An overprivileged role that holds no key stays an inventory finding: the unit of an incident is the secret.
- Internally leaked secrets, as a new incident. A credential breaches this policy precisely because it already has an incident, so promoting it would open a duplicate. Its vault and cluster places are added to that existing incident instead, which is what you want: the leak and everywhere the value is stored, on one page. The policy stays a tag and a filter in the inventory.