Internal Secret Incidents
Resolve a secret incident
Resolve a secret incident detected by the GitGuardian dashboard.
post/v1/incidents/secrets/{incident_id}/resolve
Path parameters
incident_idinteger required
The id of the incident to retrieve
Request body
Example request
{
"secret_revoked": true
}Response
Secret Incident Details without occurrences.
Example response
{
"id": 3759,
"date": "2019-08-22T14:15:22Z",
"detector": {
"name": "slack_bot_token",
"display_name": "Slack Bot Token",
"nature": "specific",
"family": "token",
"category": "messaging_system",
"detector_group_name": "slackbot_token",
"detector_group_display_name": "Slack Bot Token"
},
"secret_id": 1,
"secret_hash": "Ri9FjVgdOlPnBmujoxP4XPJcbe82BhJXB/SAngijw/juCISuOMgPzYhV28m6OG24",
"hmsl_hash": "05975add34ddc9a38a0fb57c7d3e676ffed57080516fc16bf8d8f14308fedb86",
"gitguardian_url": "https://dashboard.gitguardian.com/workspace/1/incidents/3899",
"assignee_id": 309,
"assignee_email": "eric@gitguardian.com",
"occurrences_count": 4,
"secret_presence": {
"files_requiring_code_fix": 1,
"files_pending_merge": 1,
"files_fixed": 1,
"outside_vcs": 1,
"in_vcs": 3
},
"ignore_reason": "test_credential",
"triggered_at": "2019-05-12T09:37:49Z",
"ignored_at": "2019-08-24T14:15:22Z",
"ignorer_id": 309,
"ignorer_api_token_id": "fdf075f9-1662-4cf1-9171-af50568158a8",
"resolver_id": 395,
"resolver_api_token_id": "fdf075f9-1662-4cf1-9171-af50568158a8",
"severity": "high",
"validity": "valid",
"share_url": "https://dashboard.gitguardian.com/share/incidents/11111111-1111-1111-1111-111111111111",
"tags": [
"FROM_HISTORICAL_SCAN",
"SENSITIVE_FILE"
],
"custom_tags": [
{
"id": "d45a123f-b15d-4fea-abf6-ff2a8479de5b",
"key": "env",
"value": "prod"
}
],
"feedback_list": [
{
"created_at": "2021-05-20T12:40:55.662949Z",
"updated_at": "2021-05-20T12:40:55.662949Z",
"member_id": 42,
"email": "eric@gitguardian.com",
"answers": [
{
"field_ref": "actual_secret_yes_no",
"field_label": "Is it an actual secret?",
"boolean": true
}
]
}
],
"incident_name": "GitGuardian Token",
"risk_score": 80,
"severity_rule_id": 42,
"public_exposure": {
"source_publicly_visible": true,
"leaked_outside_perimeter": true
},
"destination_tickets": [
{
"id": "DEMO-3",
"type": "jira_cloud",
"link": "https://example.atlassian.net/browse/DEMO-3"
}
],
"occurrences": [
{
"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"
}
]
}