GitGuardian Sources CreateCustomSource

GitGuardian Sources CreateCustomSource

Certified

Create a GitGuardian custom source

Creates a custom source via POST /v1/sources/custom-sources. Its sourceUuid is what scan.CreateIncidents needs to attach incidents to data GitGuardian does not monitor natively. Create it once, store the UUID in the KV store, and reuse it. The endpoint is in beta on the GitGuardian side. Requires the sources: write scope.

yaml
type: io.kestra.plugin.gitguardian.sources.CreateCustomSource

Create a custom source once and keep its UUID in the KV store

yaml
id: gitguardian_custom_source_setup
namespace: company.data

tasks:
  - id: create
    type: io.kestra.plugin.gitguardian.sources.CreateCustomSource
    apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
    name: analytics-warehouse
    sourceDescription: Nightly exports of support tickets scanned by Kestra

  - id: remember
    type: io.kestra.plugin.core.kv.Set
    key: GITGUARDIAN_WAREHOUSE_SOURCE_UUID
    value: "{{ outputs.create.source.sourceUuid }}"
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.

Name of the custom source

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

Description

Keep only secrets whose detector has a validity checker

Reduces noise from generic detectors on unstructured data. Defaults to GitGuardian's default (false).

The created custom source, including sourceUuid

Definitions
descriptionstring

Description

idstring

Source ID

namestring

Name

sourceUuidstring

Source UUID to pass as sourceUuid to scan.CreateIncidents

useOnlyDetectorsWithValidatorsboolean

Whether scans keep only secrets whose detector has a validity checker