GitGuardian Sources List
Certified
List GitGuardian monitored sources
GitGuardian Sources List
List GitGuardian monitored sources
Lists the sources (repositories, projects, buckets, channels) known to GitGuardian from GET /v1/sources, with server-side filters and cursor pagination. Requires the sources: read scope.
type: io.kestra.plugin.gitguardian.sources.ListExamples
Find at-risk critical repositories and launch a historical scan on them
id: gitguardian_rescan_at_risk
namespace: company.security
tasks:
- id: at_risk
type: io.kestra.plugin.gitguardian.sources.List
apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
health: at_risk
sourceCriticality: critical
- id: rescan
type: io.kestra.plugin.gitguardian.sources.Scan
runIf: "{{ outputs.at_risk.size > 0 }}"
apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
sourceIds: "{{ outputs.at_risk.rows | jq('[.[].id]') | first }}"
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
{}1150fetchType 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.
health string
Only this health
safe, unknown, or at_risk.
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.
monitoringStatuses array
Only sources with these monitoring statuses
Any of active, disabled, unreachable, archived, deleted_on_remote.
ordering string
LAST_SCAN_DATELAST_SCAN_DATE_DESCOrdering
LAST_SCAN_DATE or LAST_SCAN_DATE_DESC (the API forms last_scan_date and -last_scan_date also work).
perPage integerstring
100Page size
Internal pagination page size, from 1 to 100. Defaults to 100.
search string
Search in source names
sourceCriticality string
Only this criticality
critical, high, medium, low, or unknown.
sourceType string
Only this source type
For example github, gitlab, bitbucket, azure_devops, slack, or custom.
teamId integerstring
Only sources owned by this team ID
visibility string
Only this visibility
public, private, or internal.
Outputs
row
The first matching source
Only with fetchType: FETCH_ONE.
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.
rows array
All matching sources
Only with fetchType: FETCH.
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.
size integer
Number of sources fetched
uri string
uriInternal storage URI of the sources as an Amazon Ion file
Only with fetchType: STORE.