GitGuardian Public Monitoring Incidents Trigger
Certified
Trigger a flow when GitGuardian Public Monitoring finds a leaked secret
GitGuardian Public Monitoring Incidents Trigger
Trigger a flow when GitGuardian Public Monitoring finds a leaked secret
Polls GET /v1/public-incidents/secrets at interval and starts one execution per poll carrying the new (or re-triggered) public incidents, oldest first, in trigger.incidents, at most maxItemsPerPoll (default 100) at a time; the rest fire on the next polls. Same watermark mechanics as the internal incidents trigger: state in the namespace KV store, baseline seeded on the first poll without firing. Requires the incidents: read scope and a Public Monitoring subscription.
type: io.kestra.plugin.gitguardian.publicincidents.TriggerExamples
Escalate every valid public leak to the security channel
id: gitguardian_public_leak_alert
namespace: company.security
tasks:
- id: each_incident
type: io.kestra.plugin.core.flow.Loop
values: "{{ trigger.incidents }}"
tasks:
- id: notify
type: io.kestra.plugin.slack.SlackIncomingWebhook
url: "{{ secret('SLACK_WEBHOOK') }}"
messageText: ":warning: Secret leaked publicly: {{ fromJson(item.value).incidentName }} ({{ fromJson(item.value).occurrencesCount }} occurrence(s)) {{ fromJson(item.value).gitguardianUrl }}"
triggers:
- id: on_public_leak
type: io.kestra.plugin.gitguardian.publicincidents.Trigger
apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
interval: PT2M
validity: VALID
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
apiKey *string
GitGuardian API key
Personal access token or service account token created in the GitGuardian dashboard under API > Personal access tokens / Service accounts. The token needs the scopes required by the tasks and triggers you use, for example scan, incidents: read, incidents: write, or honeytokens: read. Sent as Authorization: Token <key>; never logged or included in error messages.
allowConcurrent boolean
falseSpecifies whether a trigger is allowed to start a new execution even if a previous run is still in progress.
apiUrl string
https://api.gitguardian.comGitGuardian API URL
Base URL of the GitGuardian API for your workspace: https://api.gitguardian.com (US, default), https://api.eu1.gitguardian.com (EU), or https://<your-instance>/exposed for a self-hosted GitGuardian. The /v1 prefix is appended automatically.
declarativeSecretStatus string
Only incidents with this declarative secret status
For example not_declared or mine.
detectorGroupName string
Only incidents from this detector group
interval string
PT5MdurationPolling interval
How often to poll the GitGuardian API. Defaults to PT5M.
maxItemsPerPoll integerstring
100Maximum items delivered per poll
Caps how many new items one execution carries, from 1 to 1000. Defaults to 100. Items beyond the cap are not lost: the watermark only advances past delivered items, so they fire on the next polls, oldest first.
riskScoreMin integerstring
Minimum risk score, from 0 to 100
severity string
CRITICALHIGHMEDIUMLOWINFOUNKNOWNOnly incidents at this severity
status string
TRIGGEREDASSIGNEDRESOLVEDIGNOREDUNKNOWNOnly incidents in this status
stopAfter array
CREATEDSUBMITTEDRUNNINGPAUSEDRESTARTEDKILLINGSUCCESSWARNINGFAILEDKILLEDCANCELLEDQUEUEDRETRYINGRETRIEDSKIPPEDBREAKPOINTRESUBMITTEDList of execution states after which a trigger should be stopped (a.k.a. disabled).
validity string
VALIDINVALIDFAILED_TO_CHECKNO_CHECKERNOT_CHECKEDUNKNOWNOnly incidents with this secret validity
when string
trueA condition that determines whether the trigger should run.
A Pebble expression evaluated at trigger time. The trigger fires only when the expression evaluates to a truthy value (true, a non-empty string, a non-zero number). Use this to gate trigger execution on dynamic runtime values such as execution labels, flow variables, or environment conditions.
Outputs
count integer
Number of incidents in this execution
incidents array
New public incidents since the previous poll, oldest first
At most maxItemsPerPoll per execution.
io.kestra.plugin.gitguardian.publicincidents.PublicIncident
Email of the assigned member
ID of the assigned member
Custom tags
io.kestra.plugin.gitguardian.incidents.CustomTag
Custom tag ID
Custom tag key
Custom tag value
Null for key-only tags.
date-timeDate the incident was last triggered
Whether the secret was declared as yours
Public Monitoring only: the declarative status set by the workspace, for example not_declared, mine, or not_mine.
Detector that found the secret
io.kestra.plugin.gitguardian.incidents.Detector
Detector group display name
Detector group name
Detector display name
For example AWS Keys.
Detector family
For example apikey, token, or private_key.
Detector name
For example aws_iam.
Detector nature
specific or generic.
Incident URL on the GitGuardian dashboard
Incident ID
Comma-separated reasons the incident was ignored
date-timeDate the incident was ignored
Human-readable incident name
Number of public occurrences
Comma-separated reasons the incident was resolved
date-timeDate the incident was resolved
Risk score from 0 to 100
Whether the secret was revoked
CRITICALHIGHMEDIUMLOWINFOUNKNOWNIncident severity
Public share URL, if shared
TRIGGEREDASSIGNEDRESOLVEDIGNOREDUNKNOWNIncident status
TRIGGERED, ASSIGNED, RESOLVED, or IGNORED.
GitGuardian tags
date-timeDate the incident was first triggered
VALIDINVALIDFAILED_TO_CHECKNO_CHECKERNOT_CHECKEDUNKNOWNValidity of the secret
Whether the secret is stored in a vault