Table: gitguardian_secret_incident
Returns the leaked incidents detected.
Examples
List all incidents
select id, date, statusfrom gitguardian_secret_incident;
List open incidents
select id, date, statusfrom gitguardian_secret_incidentwhere status in ('TRIGGERED', 'ASSIGNED');
List shared incidents
select id, date, status, share_urlfrom gitguardian_secret_incidentwhere share_url is not null;
Get incidents sorted by the number of occurrences
select id, date, status, occurrences_countfrom gitguardian_secret_incidentorder by occurrences_count desc;
Get last month incidents
select id, date, statusfrom gitguardian_secret_incidentwhere date > (current_date - interval '1' month);
Schema for gitguardian_secret_incident
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form, e.g. connection_name. | |
assignee_email | text | = | Assignee email. |
date | timestamp with time zone | >, >=, =, <, <= | Last trigger date. |
detector_display_name | text | Display of the detector. | |
detector_family | text | Family of the detector. | |
detector_group_display_name | text | Group display name of the detector. | |
detector_group_name | text | Group name of the detector. | |
detector_name | text | Name of the detector. | |
detector_nature | text | Nature of the detector. | |
gitguardian_url | text | The URL to gitguardian. | |
id | bigint | = | Unique identifier of the incident. |
ignore_reason | text | The reason of the ignore status: test_credential, false_positive, low_risk | |
ignored_at | timestamp with time zone | The date where it has been ignored. | |
occurrences_count | bigint | Number of occurrences. | |
regression | boolean | True if it's a regression. | |
resolved_at | timestamp with time zone | The date where it has been resolved. | |
secret_hash | text | Unique hash. | |
secret_revoked | boolean | True if the secret has been revoked. | |
severity | text | = | Severity of the incident: critical, high, medium, low, info, unknown. |
share_url | text | The public URL of the incident (if any). | |
status | text | = | Status of the incident: IGNORED, TRIGGERED, ASSIGNED, RESOLVED). |
tags | jsonb | Can be FROM_HISTORICAL_SCAN, IGNORED_IN_CHECK_RUN, PUBLIC, REGRESSION, SENSITIVE_FILE or TEST_FILE | |
validity | text | = | The validity state: valid, invalid, failed_to_check, no_checker, unknown |