GET
/repos/{owner}/{repo}/dependabot/alerts/{alert_number}Get a Dependabot alert
Retrieves a Dependabot alert from a repository by its alert number. Use the alert_number value returned by the repository's Dependabot alerts listing, and provide a token with the required scope for the repository's visibility.
ownerstringrequired
The account that owns the repository; the name is not case-sensitive.
repostringrequired
The repository name without the `.git` extension; the name is not case-sensitive.
alert_numberintegerrequired
The number identifying the Dependabot alert in the repository.
200Returns the Dependabot alert object, including its state, vulnerable dependency details, security advisory, affected version range, and alert timestamps.
numberintegerrequired
The security alert number.
statestringrequired
The state of the Dependabot alert.
dependencyobjectrequired
Details for the vulnerable dependency.
security_advisoryobjectrequired
Details for the GitHub Security Advisory.
security_vulnerabilityobjectrequired
Details pertaining to one vulnerable version range for the advisory.
urlstringrequired
The REST API URL of the alert resource.
html_urlstringrequired
The GitHub URL of the alert resource.
created_atstringrequired
The time that the alert was created in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
updated_atstringrequired
The time that the alert was last updated in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
dismissed_atstringrequired
The time that the alert was dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
dismissed_byobjectrequired
A GitHub user.
dismissed_reasonstringrequired
The reason that the alert was dismissed.
dismissed_commentstringrequired
An optional comment associated with the alert's dismissal.
fixed_atstringrequired
The time that the alert was no longer detected and was considered fixed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
auto_dismissed_atstringoptional
The time that the alert was auto-dismissed in ISO 8601 format: `YYYY-MM-DDTHH:MM:SSZ`.
dismissal_requestobjectoptional
Information about an active dismissal request for this Dependabot alert.
assigneesarray<SimpleUser>optional
The users assigned to this alert.
304Returned when the alert has not changed since the version indicated by the request's conditional headers.
403Returned when you do not have permission to access the alert, including when the token lacks the required scope.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the Dependabot alert cannot be found in the specified repository.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
410Returned when the Dependabot alert is no longer available.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 403 is returned when the authenticated user or token does not have permission to access the alert; OAuth app tokens and personal access tokens (classic) need the security_events scope, or public_repo for public repositories only. A 404 is returned when the alert cannot be found, and a 410 is returned when the alert is gone. The alert_number path parameter must identify an alert in the specified repository.