List public secret occurrences
List occurrences of a public secret incident detected by the GitGuardian dashboard
Path parameters
The id of the incident to retrieve
Query parameters
Pagination cursor.
Number of items to list per page.
Entries found before this date.
Entries found after this date.
Filter on the source ID.
Entries that have the following presence status.
Entries starting with the commit sha search string.
Entries matching this filepath search.
Occurrences with one of the following attachment reasons.
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.
Public secret incidents with one of the following tags. Use NONE if you want to filter incidents 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 public secret occurrences
Example response
[
{
"id": 12345,
"incident_id": 3759,
"date": "2019-08-22T14:15:22Z",
"filepath": "src/config/database.yml",
"kind": "realtime",
"presence": "present",
"matches": [
{
"name": "apikey",
"indice_start": 32,
"indice_end": 79,
"post_line_start": 1,
"post_line_end": 1
}
],
"tags": [
"FROM_HISTORICAL_SCAN",
"SENSITIVE_FILE"
],
"sha": "fccebf0562698ab99dc10dcb2e864fc563b25ac4",
"url": "https://github.com/gitguardian/test-repository/blob/main/src/config/database.yml",
"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
},
"actor": {
"id": 12345,
"type": "github_user",
"name": "John Doe",
"email": "john.doe@example.com",
"url": "https://github.com/johndoe"
},
"attachment_reasons": [
"by_dev_from_perimeter"
]
}
]