GitGuardian Secret Incidents Assign

GitGuardian Secret Incidents Assign

Certified

Assign a GitGuardian secret incident

Assigns a secret incident to a workspace member by email or member ID via POST /v1/incidents/secrets/{id}/assign. Requires the incidents: write scope.

yaml
type: io.kestra.plugin.gitguardian.incidents.Assign

Assign every new critical incident to the security on-call

yaml
id: gitguardian_assign_oncall
namespace: company.security

tasks:
  - id: each_incident
    type: io.kestra.plugin.core.flow.Loop
    values: "{{ trigger.incidents }}"
    tasks:
      - id: assign
        type: io.kestra.plugin.gitguardian.incidents.Assign
        apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
        incidentId: "{{ fromJson(item.value).id }}"
        assigneeEmail: security-oncall@company.com

triggers:
  - id: on_incident
    type: io.kestra.plugin.gitguardian.incidents.Trigger
    apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
    severity: CRITICAL
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

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.

Incident ID

In a flow started by the incidents trigger, loop over trigger.incidents and use {{ fromJson(item.value).id }}.

Defaulthttps://api.gitguardian.com

GitGuardian 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 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

Email of the member to assign

Mutually exclusive with assigneeMemberId.

ID of the member to assign

Mutually exclusive with assigneeEmail.

Defaulttrue

Notify the assignee by email

Defaults to true.

The updated incident

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