GET
/repos/{owner}/{repo}/dependabot/alerts/{alert_number}Get a Dependabot alert
Retrieves a specific Dependabot alert for a repository. Use owner, repo, and alert_number to identify the repository and alert; OAuth app tokens and classic personal access tokens require the security_events scope, or public_repo for public repositories. The response includes the alert state, vulnerable dependency, security advisory, and dismissal details.
- RetriesRetries up to 2×, 500ms backoff, 30s timeout.
ownerstringrequired
The account owner of 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 integer identifying the Dependabot alert in the repository.
200Returns a Dependabot alert object containing its number and state, vulnerable dependency, security advisory, security vulnerability, resource URLs, timestamps, and dismissal or fix details.
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 request's conditional version.
403Returned when the authenticated user or token does not have permission to access security alerts for the repository.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
404Returned when the specified repository or Dependabot alert does not exist.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
410Returned when the requested alert resource is no longer available.
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional
Error handling
A 403 is returned when the token lacks access to security alerts or the required scope. A 404 is returned when the repository or alert_number cannot be found, and a 410 is returned when the alert resource is no longer available. alert_number must be an integer identifying a Dependabot alert in the specified repository.