steampipe plugin install francois2metz/gitguardian

Table: gitguardian_secret_incident

Returns the leaked incidents detected.

Examples

List all incidents

select
id,
date,
status
from
gitguardian_secret_incident;

List open incidents

select
id,
date,
status
from
gitguardian_secret_incident
where
status in ('TRIGGERED', 'ASSIGNED');

List shared incidents

select
id,
date,
status,
share_url
from
gitguardian_secret_incident
where
share_url is not null;

Get incidents sorted by the number of occurrences

select
id,
date,
status,
occurrences_count
from
gitguardian_secret_incident
order by
occurrences_count desc;

Get last month incidents

select
id,
date,
status
from
gitguardian_secret_incident
where
date > (current_date - interval '1' month);

Schema for gitguardian_secret_incident

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form, e.g. connection_name.
assignee_emailtext=Assignee email.
datetimestamp with time zone>, >=, =, <, <=Last trigger date.
detector_display_nametextDisplay of the detector.
detector_familytextFamily of the detector.
detector_group_display_nametextGroup display name of the detector.
detector_group_nametextGroup name of the detector.
detector_nametextName of the detector.
detector_naturetextNature of the detector.
gitguardian_urltextThe URL to gitguardian.
idbigint=Unique identifier of the incident.
ignore_reasontextThe reason of the ignore status: test_credential, false_positive, low_risk
ignored_attimestamp with time zoneThe date where it has been ignored.
occurrences_countbigintNumber of occurrences.
regressionbooleanTrue if it's a regression.
resolved_attimestamp with time zoneThe date where it has been resolved.
secret_hashtextUnique hash.
secret_revokedbooleanTrue if the secret has been revoked.
severitytext=Severity of the incident: critical, high, medium, low, info, unknown.
share_urltextThe public URL of the incident (if any).
statustext=Status of the incident: IGNORED, TRIGGERED, ASSIGNED, RESOLVED).
tagsjsonbCan be FROM_HISTORICAL_SCAN, IGNORED_IN_CHECK_RUN, PUBLIC, REGRESSION, SENSITIVE_FILE or TEST_FILE
validitytext=The validity state: valid, invalid, failed_to_check, no_checker, unknown