GitGuardian Audit Logs List

GitGuardian Audit Logs List

Certified

List GitGuardian audit logs

Lists workspace audit log entries from GET /v1/audit_logs with server-side filters and cursor pagination. Use fetchType: STORE to export a period to internal storage for a SIEM, a warehouse, or compliance evidence. Requires the audit_logs: read scope.

yaml
type: io.kestra.plugin.gitguardian.auditlogs.List

Export yesterday's audit logs to internal storage every night

yaml
id: gitguardian_audit_export
namespace: company.security

tasks:
  - id: export
    type: io.kestra.plugin.gitguardian.auditlogs.List
    apiKey: "{{ secret('GITGUARDIAN_API_KEY') }}"
    dateAfter: "{{ trigger.date | dateAdd(-1, 'DAYS') }}"
    dateBefore: "{{ trigger.date }}"
    fetchType: STORE

  - id: to_s3
    type: io.kestra.plugin.aws.s3.Upload
    from: "{{ outputs.export.uri }}"
    bucket: security-audit-logs
    key: "gitguardian/{{ trigger.date | date('yyyy-MM-dd') }}.ion"

triggers:
  - id: nightly
    type: io.kestra.plugin.core.trigger.Schedule
    cron: "0 2 * * *"
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.

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

Only events after this date

Only events before this date

Only events with this name

For example incident.ignored.

DefaultFETCH
Possible Values
STOREFETCHFETCH_ONENONE

Fetch 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.

Only events from this IP address

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.

Only events by this member email

Only events by this member ID

Default100

Page size

Internal pagination page size, from 1 to 100. Defaults to 100.

Only events made with this API token ID

The token's UUID as shown in the dashboard, not the token value.

The first matching entry

Only with fetchType: FETCH_ONE.

Definitions
actionTypestring

Action type

For example create, update, or delete.

apiTokenIdstring

ID of the API token used, when the action came through the API

dataobject

Additional event data

datestring
Formatdate-time

Event date

eventNamestring

Event name

For example incident.ignored, api_token.created, or member.invited. GET /v1/audit_logs/event_names lists them all.

idinteger

Audit log entry ID

ipAddressstring

Source IP address

memberEmailstring

Email of the member who performed the action

memberIdinteger

ID of the member who performed the action

Null when the member was deleted or the action came from an API token.

memberNamestring

Name of the member at the time of the action

targetIdsarray

IDs of the objects targeted by the action

All matching entries

Only with fetchType: FETCH.

Definitions
actionTypestring

Action type

For example create, update, or delete.

apiTokenIdstring

ID of the API token used, when the action came through the API

dataobject

Additional event data

datestring
Formatdate-time

Event date

eventNamestring

Event name

For example incident.ignored, api_token.created, or member.invited. GET /v1/audit_logs/event_names lists them all.

idinteger

Audit log entry ID

ipAddressstring

Source IP address

memberEmailstring

Email of the member who performed the action

memberIdinteger

ID of the member who performed the action

Null when the member was deleted or the action came from an API token.

memberNamestring

Name of the member at the time of the action

targetIdsarray

IDs of the objects targeted by the action

Number of entries fetched

Formaturi

Internal storage URI of the entries as an Amazon Ion file

Only with fetchType: STORE.