GitGuardian Secret Incidents List
Certified
List GitGuardian secret incidents
GitGuardian Secret Incidents List
List GitGuardian secret incidents
Lists secret incidents from GET /v1/incidents/secrets, following cursor pagination until every matching incident is fetched or maxResults is reached. Filters are applied server-side. Use fetchType: STORE for large result sets: rows stream to internal storage instead of the execution output. Requires the incidents: read scope.
type: io.kestra.plugin.gitguardian.incidents.ListExamples
List open critical incidents with a valid secret
id: gitguardian_critical_incidents
namespace: company.security
tasks:
- id: list
type: io.kestra.plugin.gitguardian.incidents.List
apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
status: TRIGGERED
severity: CRITICAL
validity: VALID
ordering: DATE_DESC
maxResults: 50
- id: report
type: io.kestra.plugin.core.log.Log
message: "{{ outputs.list.size }} critical incident(s) need attention"
Export every incident resolved this week to internal storage
id: gitguardian_weekly_resolved
namespace: company.security
tasks:
- id: list
type: io.kestra.plugin.gitguardian.incidents.List
apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
status: RESOLVED
dateAfter: "{{ now() | dateAdd(-7, 'DAYS') }}"
fetchType: STORE
triggers:
- id: weekly
type: io.kestra.plugin.core.trigger.Schedule
cron: "0 8 * * MON"
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.
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.
assets
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.
io.kestra.core.models.assets.AssetsDeclaration
IGNOREFAILWARNAsset 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.
Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.
The assets consumed as inputs.
io.kestra.core.models.assets.AssetIdentifier
1The assets produced as outputs.
io.kestra.plugin.ee.assets.Dataset
1150{}1150io.kestra.plugin.ee.assets.File
1150{}1150io.kestra.plugin.ee.assets.Table
1150{}1150io.kestra.plugin.ee.assets.VM
1150{}1150io.kestra.core.models.assets.External
1150{}1150io.kestra.core.models.assets.Custom
11501Custom asset type
{}1150assigneeEmail string
Filter by assignee email
dateAfter string
Only incidents last triggered after this date
dateBefore string
Only incidents last triggered before this date
detectorGroupName string
Filter by detector group name
For example aws_iam or slackbot_token.
fetchType string
FETCHSTOREFETCHFETCH_ONENONEFetch type
FETCH_ONE outputs the first matching item as row, FETCH outputs every matching item as rows, STORE streams every matching item to internal storage and returns a uri, NONE only counts. Defaults to FETCH.
maxResults integerstring
Maximum number of items to return
Stops paginating once reached. When omitted, FETCH returns at most 1000 items to keep the output small (a warning is logged if that cap truncates the result), while STORE and NONE are unlimited. Set it explicitly to raise or lower the cap, or use STORE for large result sets.
ordering string
DATEDATE_DESCRESOLVED_ATRESOLVED_AT_DESCIGNORED_ATIGNORED_AT_DESCRISK_SCORERISK_SCORE_DESCOrdering
DATE, RESOLVED_AT, IGNORED_AT, or RISK_SCORE; add the _DESC suffix (or write the API form, for example -date) for descending. Defaults to GitGuardian's ordering (DATE ascending).
perPage integerstring
100Page size
Internal pagination page size, from 1 to 100. Defaults to 100.
riskScoreMin integerstring
Minimum risk score, from 0 to 100
severity string
CRITICALHIGHMEDIUMLOWINFOUNKNOWNFilter by severity
CRITICAL, HIGH, MEDIUM, LOW, INFO, or UNKNOWN.
status string
TRIGGEREDASSIGNEDRESOLVEDIGNOREDUNKNOWNFilter by status
TRIGGERED, ASSIGNED, RESOLVED, or IGNORED.
validity string
VALIDINVALIDFAILED_TO_CHECKNO_CHECKERNOT_CHECKEDUNKNOWNFilter by secret validity
VALID, INVALID, FAILED_TO_CHECK, NO_CHECKER, or UNKNOWN.
Outputs
row
The first matching incident
Only populated with fetchType: FETCH_ONE.
io.kestra.plugin.gitguardian.incidents.Incident
Email of the assigned member
ID of the assigned member
Custom tags set on the incident
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
Declarative secret status
Only set on Public Monitoring incidents delivered by webhook, for example active or not_declared.
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
Reason given when the incident was ignored
test_credential, false_positive, low_risk, or invalid.
date-timeDate the incident was ignored
Human-readable incident name
Combines the detector and a short identifier, for example AWS Keys - 7f3a.
Number of occurrences of the secret across monitored sources
Whether the incident was re-triggered after being resolved or ignored
date-timeDate the incident was resolved
Risk score from 0 (low) to 100 (critical)
Whether the secret was reported as revoked on resolution
CRITICALHIGHMEDIUMLOWINFOUNKNOWNIncident severity
critical, high, medium, low, info, or unknown.
Public share URL, if the incident was shared
TRIGGEREDASSIGNEDRESOLVEDIGNOREDUNKNOWNIncident status
TRIGGERED, ASSIGNED, RESOLVED, or IGNORED.
GitGuardian tags
For example FROM_HISTORICAL_SCAN, PUBLICLY_EXPOSED, or TEST_FILE.
date-timeDate the incident was first triggered
VALIDINVALIDFAILED_TO_CHECKNO_CHECKERNOT_CHECKEDUNKNOWNValidity of the secret
valid, invalid, failed_to_check, no_checker, or unknown.
Whether the secret is stored in a vault
rows array
All matching incidents
Only populated with fetchType: FETCH.
io.kestra.plugin.gitguardian.incidents.Incident
Email of the assigned member
ID of the assigned member
Custom tags set on the incident
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
Declarative secret status
Only set on Public Monitoring incidents delivered by webhook, for example active or not_declared.
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
Reason given when the incident was ignored
test_credential, false_positive, low_risk, or invalid.
date-timeDate the incident was ignored
Human-readable incident name
Combines the detector and a short identifier, for example AWS Keys - 7f3a.
Number of occurrences of the secret across monitored sources
Whether the incident was re-triggered after being resolved or ignored
date-timeDate the incident was resolved
Risk score from 0 (low) to 100 (critical)
Whether the secret was reported as revoked on resolution
CRITICALHIGHMEDIUMLOWINFOUNKNOWNIncident severity
critical, high, medium, low, info, or unknown.
Public share URL, if the incident was shared
TRIGGEREDASSIGNEDRESOLVEDIGNOREDUNKNOWNIncident status
TRIGGERED, ASSIGNED, RESOLVED, or IGNORED.
GitGuardian tags
For example FROM_HISTORICAL_SCAN, PUBLICLY_EXPOSED, or TEST_FILE.
date-timeDate the incident was first triggered
VALIDINVALIDFAILED_TO_CHECKNO_CHECKERNOT_CHECKEDUNKNOWNValidity of the secret
valid, invalid, failed_to_check, no_checker, or unknown.
Whether the secret is stored in a vault
size integer
Number of incidents fetched
uri string
uriInternal storage URI of the incidents as an Amazon Ion file
Only populated with fetchType: STORE.