GitGuardian Webhooks Receive

GitGuardian Webhooks Receive

Certified

Verify and parse a GitGuardian custom webhook event

Companion of Kestra's core Webhook trigger for GitGuardian custom webhooks: pass it {{ trigger.body }} and {{ trigger.headers }} and it returns the event's action, timestamp, message and the typed incident (same shape as the incident tasks, camelCase). When signatureToken is set, it verifies the Gitguardian-Signature header (HMAC-SHA256 keyed with the Timestamp header plus the token) and rejects stale timestamps beyond maxClockSkew. Kestra delivers the webhook body already parsed, so the signature is checked against the canonical re-serializations GitGuardian is known to use; pass rawBody when you have the exact bytes for a strict check. Fails the flow on an invalid signature unless failOnInvalidSignature: false. No GitGuardian API call, no scope needed.

yaml
type: io.kestra.plugin.gitguardian.webhooks.Receive

Real-time incident response from a GitGuardian custom webhook

yaml
id: gitguardian_webhook
namespace: company.security

tasks:
  - id: event
    type: io.kestra.plugin.gitguardian.webhooks.Receive
    body: "{{ trigger.body }}"
    headers: "{{ trigger.headers }}"
    signatureToken: "{{ secret('GITGUARDIAN_WEBHOOK_SIGNATURE_TOKEN') }}"

  - id: on_new_incident
    type: io.kestra.plugin.core.flow.If
    condition: "{{ outputs.event.action == 'incident_triggered' }}"
    then:
      - id: assign
        type: io.kestra.plugin.gitguardian.incidents.Assign
        apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
        incidentId: "{{ outputs.event.incident.id }}"
        assigneeEmail: security-oncall@company.com

triggers:
  - id: webhook
    type: io.kestra.plugin.core.trigger.Webhook
    key: "{{ secret('GITGUARDIAN_WEBHOOK_KEY') }}"
Installation

Our standard Docker images already include this plugin. If you use a -slim image or another setup, install it with the following command:

kestractl plugins get io.kestra.plugin:plugin-gitguardian --compatible-for $KESTRA_VERSION

For kestractl, use your Kestra version with --compatible-for, or specify an exact plugin version.

Properties

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150

Webhook body

{{ trigger.body }} from the core Webhook trigger, already parsed as JSON.

Defaulttrue

Fail when the signature or timestamp is invalid

Defaults to true. When false, the task succeeds and exposes the result in verified.

Webhook headers

{{ trigger.headers }} from the core Webhook trigger.

DefaultPT5M

Maximum accepted age of the event

Difference allowed between the Timestamp header and the execution start date, so a queued or retried run is not taken for a replay. Defaults to PT5M.

Raw webhook body

Exact request body as a string, when available (for example from a stored trigger.uri). When set, it is used instead of body for both the strict signature check and the typed outputs.

Signature token

The signature token configured on the GitGuardian custom webhook. Signature verification is skipped when omitted, so only run write tasks (assign, resolve, ignore, ...) when the verified output is true.

Event action

For example incident_triggered, new_occurrence, incident_validity_changed, incident_severity_changed, incident_resolved, incident_ignored, incident_reopened, incident_regression, incident_assigned, incident_note_created, honeytoken_triggered, or new_honeytoken_event.

The honeytoken, for honeytoken_triggered events

Definitions
createdAtstring
Formatdate-time

Creation date

creatorIdinteger

ID of the member who created it

customTagsarray

Custom tags

idstring

Custom tag ID

keystring

Custom tag key

valuestring

Custom tag value

Null for key-only tags.

descriptionstring

Description

gitguardianUrlstring

Honeytoken URL on the GitGuardian dashboard

idstring

Honeytoken ID

namestring

Name

openEventsCountinteger

Number of open events

revokedAtstring
Formatdate-time

Revocation date

statusstring

Status

active, triggered, or revoked.

tagsarray
SubTypestring

GitGuardian tags

triggeredAtstring
Formatdate-time

Last date the honeytoken switched from active to triggered

typestring

Type

Currently AWS.

The honeytoken event, for new_honeytoken_event events

Definitions
actionstring

Action performed with the honeytoken

For example GetCallerIdentity.

dataobject

Additional event data

For example user agent, AWS region, or geolocation.

gitguardianUrlstring

Event URL on the GitGuardian dashboard

honeytokenIdstring

ID of the honeytoken that was used

idstring

Event ID

ipAddressstring

Source IP address

statusstring

Event status

open or closed.

tagsarray
SubTypestring

GitGuardian tags

triggeredAtstring
Formatdate-time

When the honeytoken was used

The incident, typed like the incident tasks

Null for events without an incident, such as honeytoken events.

Definitions
assigneeEmailstring

Email of the assigned member

assigneeIdinteger

ID of the assigned member

customTagsarray

Custom tags set on the incident

idstring

Custom tag ID

keystring

Custom tag key

valuestring

Custom tag value

Null for key-only tags.

datestring
Formatdate-time

Date the incident was last triggered

declarativeSecretStatusstring

Declarative secret status

Only set on Public Monitoring incidents delivered by webhook, for example active or not_declared.

detector

Detector that found the secret

detectorGroupDisplayNamestring

Detector group display name

detectorGroupNamestring

Detector group name

displayNamestring

Detector display name

For example AWS Keys.

familystring

Detector family

For example apikey, token, or private_key.

namestring

Detector name

For example aws_iam.

naturestring

Detector nature

specific or generic.

gitguardianUrlstring

Incident URL on the GitGuardian dashboard

idinteger

Incident ID

ignoreReasonstring

Reason given when the incident was ignored

test_credential, false_positive, low_risk, or invalid.

ignoredAtstring
Formatdate-time

Date the incident was ignored

incidentNamestring

Human-readable incident name

Combines the detector and a short identifier, for example AWS Keys - 7f3a.

occurrencesCountinteger

Number of occurrences of the secret across monitored sources

regressionboolean

Whether the incident was re-triggered after being resolved or ignored

resolvedAtstring
Formatdate-time

Date the incident was resolved

riskScoreinteger

Risk score from 0 (low) to 100 (critical)

secretRevokedboolean

Whether the secret was reported as revoked on resolution

severitystring
Possible Values
CRITICALHIGHMEDIUMLOWINFOUNKNOWN

Incident severity

critical, high, medium, low, info, or unknown.

shareUrlstring

Public share URL, if the incident was shared

statusstring
Possible Values
TRIGGEREDASSIGNEDRESOLVEDIGNOREDUNKNOWN

Incident status

TRIGGERED, ASSIGNED, RESOLVED, or IGNORED.

tagsarray
SubTypestring

GitGuardian tags

For example FROM_HISTORICAL_SCAN, PUBLICLY_EXPOSED, or TEST_FILE.

triggeredAtstring
Formatdate-time

Date the incident was first triggered

validitystring
Possible Values
VALIDINVALIDFAILED_TO_CHECKNO_CHECKERNOT_CHECKEDUNKNOWN

Validity of the secret

valid, invalid, failed_to_check, no_checker, or unknown.

vaultedboolean

Whether the secret is stored in a vault

Human-readable message

The occurrence, for new_occurrence events

Raw GitGuardian fields: id, incident_id, kind, sha, author_name, date, url, source, and match positions.

Target team name

Target user email, when the event concerns a user

Formatdate-time

Event timestamp

Whether the signature and timestamp were verified

Null when signatureToken is not set.

Name of the custom webhook that sent the event