GitGuardian Sources Get
Certified
Get a GitGuardian source
GitGuardian Sources Get
Get a GitGuardian source
Fetches one monitored source by ID from GET /v1/sources/{id}, including its lastScan status. The ID must belong to a source already returned by sources.List: custom sources created with CreateCustomSource are not returned by this endpoint (404), so create the source in the GitGuardian dashboard first, see Bring Your Own Sources. Requires the sources: read scope.
type: io.kestra.plugin.gitguardian.sources.GetExamples
Wait for a historical scan to finish
id: gitguardian_wait_scan
namespace: company.security
inputs:
- id: source_id
type: INT
tasks:
- id: scan
type: io.kestra.plugin.gitguardian.sources.Scan
apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
sourceIds:
- "{{ inputs.source_id }}"
- id: wait
type: io.kestra.plugin.core.flow.WaitFor
condition: "{{ outputs.get.source.lastScan.status == 'finished' }}"
checkFrequency:
interval: PT1M
maxDuration: PT2H
tasks:
- id: get
type: io.kestra.plugin.gitguardian.sources.Get
apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
sourceId: "{{ inputs.source_id }}"
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.
sourceId *integerstring
Source ID
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
{}1150Outputs
source
The source
io.kestra.plugin.gitguardian.sources.Source
Number of closed secret incidents
Default branch
Whether the source was deleted
Provider identifier of the source
Full name
For example org/repository.
Health
safe, unknown, or at_risk, based on open incidents.
Source ID
Last historical scan
Object with date, status, and failing_reason.
Real-time monitoring status
active, disabled, unreachable, archived, or deleted_on_remote.
Number of open secret incidents
Criticality
critical, high, medium, low, or unknown.
Source type
For example github, gitlab, bitbucket, azure_devops, slack, jira_cloud, or custom.
Source URL
Visibility
public, private, or internal.