List secret occurrences
List occurrences of secrets in the monitored perimeter.
Query parameters
Pagination cursor.
Page number.
Number of items to list per page.
Entries found before this date.
Entries found after this date.
Filter on the source ID.
Entries matching this source name search.
Filter by source type.
Keep only occurrences whose source's real-time monitoring status is one of the given (comma-separated) buckets. Requires the monitoring-status feature to be enabled for the workspace; otherwise the parameter is ignored.
Filter by incident ID.
Filter by incident assignee member ID.
Entries that have the following presence status.
Entries matching this author name search.
Entries matching this author email search.
Entries starting with the commit sha search string.
Entries matching this filepath search.
Filter occurrences by the severity of their related incident. Can specify multiple values separated by commas.
Filter occurrences by the status of their related incident. Can specify multiple values separated by commas.
Filter occurrences by the validity of their related secret. Can specify multiple values separated by commas.
Occurrences with one of the following tags. Use NONE if you want to filter occurrences with no tags.
Exclude occurrences with any of the following tags (comma-separated). Use NONE to exclude occurrences with no tags.
Sort the results by their field value. The default sort is ASC, DESC if the field is preceded by a '-'.
Response
List occurrences
Example response
[
{
"id": 4421,
"incident_id": 3759,
"source": {
"id": 6531,
"url": "https://github.com/GitGuardian/gg-shield",
"type": "github",
"full_name": "gitguardian/gg-shield",
"health": "at_risk",
"default_branch": "main",
"default_branch_head": "abcd97b4aaf927ea934504263322e75e86c31xyz",
"open_incidents_count": 3,
"closed_incidents_count": 2,
"visibility": "public",
"external_id": "125",
"source_criticality": "critical",
"last_scan": {
"date": "2021-05-20T12:40:55.662949Z",
"status": "finished",
"failing_reason": "DMCA takedown",
"commits_scanned": 123,
"branches_scanned": 2,
"duration": "1:30.454444"
},
"monitored": true,
"monitoring_status": "active",
"deleted": true
},
"author_name": "Eric",
"author_info": "eric@gitguardian.com",
"date": "2021-05-20T12:40:55.662949Z",
"url": "https://github.com/prm-dev-team/QATest_staging/commit/76dd18a2a8d27eaf00a45851cc7731c53b59ed19#diff-0f372f3171c8f13a15a22a1081487ed54fa70ad088e17c6c6386196a179a04ffR1",
"matches": [
{
"name": "apikey",
"indice_start": 32,
"indice_end": 79,
"post_line_start": 1,
"post_line_end": 1
}
],
"tags": [
"FROM_HISTORICAL_SCAN",
"SENSITIVE_FILE"
],
"incident_name": "GitGuardian Token",
"sha": "d670460b4b4aece5915caf5c68d12f560a9fe3e4",
"presence": "present",
"filepath": "test_data/12123testfile.txt",
"change_type": "addition"
}
]