Update a Dependabot alert
The authenticated user must have access to security alerts for the repository to use this endpoint. For more information, see “Granting access to security alerts.”
OAuth app tokens and personal access tokens (classic) need the security_events scope to use this endpoint. If this endpoint is only used with public repositories, the token can use the public_repo scope instead.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”The account owner of the repository. The name is not case sensitive.
The name of the repository without the .git extension. The name is not case sensitive.
The security alert number.
The number that identifies a Dependabot alert in its repository.
You can find this at the end of the URL for a Dependabot alert within GitHub,
or in number fields in the response from the
GET /repos/{owner}/{repo}/dependabot/alerts operation.
Request Body required
Section titled “ Request Body required ”object
The state of the Dependabot alert.
A dismissed_reason must be provided when setting the state to dismissed.
Required when state is dismissed. A reason for dismissing the alert.
An optional comment associated with dismissing the alert.
Usernames to assign to this Dependabot Alert.
Pass one or more user logins to replace the set of assignees on this alert.
Send an empty array ([]) to clear all assignees from the alert.
To assign an AI agent, include the bot login (for example, copilot-swe-agent[bot]).
Parameters for AI agent assignment. Only used when an agent bot login is
included in assignees. Ignored when no agent is being assigned.
object
Custom instructions for the agent.
A custom agent identifier.
The model to use for the agent.
object
The state of the Dependabot alert.
A dismissed_reason must be provided when setting the state to dismissed.
Required when state is dismissed. A reason for dismissing the alert.
An optional comment associated with dismissing the alert.
Usernames to assign to this Dependabot Alert.
Pass one or more user logins to replace the set of assignees on this alert.
Send an empty array ([]) to clear all assignees from the alert.
To assign an AI agent, include the bot login (for example, copilot-swe-agent[bot]).
Parameters for AI agent assignment. Only used when an agent bot login is
included in assignees. Ignored when no agent is being assigned.
object
Custom instructions for the agent.
A custom agent identifier.
The model to use for the agent.
Examples
{ "state": "dismissed", "dismissed_reason": "tolerable_risk", "dismissed_comment": "This alert is accurate but we use a sanitizer."}Responses
Section titled “ Responses ”Response
A Dependabot alert.
object
The security alert number.
The state of the Dependabot alert.
Details for the vulnerable dependency.
object
Details for the vulnerable package.
object
The package’s language or package management ecosystem.
The unique package name within its ecosystem.
The full path to the dependency manifest file, relative to the root of the repository.
The execution scope of the vulnerable dependency.
The vulnerable dependency’s relationship to your project.
[!NOTE] We are rolling out support for dependency relationship across ecosystems. This value will be “unknown” for all dependencies in unsupported ecosystems.
Details for the GitHub Security Advisory.
object
The unique GitHub Security Advisory ID assigned to the advisory.
The unique CVE ID assigned to the advisory.
A short, plain text summary of the advisory.
A long-form Markdown-supported description of the advisory.
Vulnerable version range information for the advisory.
Details pertaining to one vulnerable version range for the advisory.
object
Details for the vulnerable package.
object
The package’s language or package management ecosystem.
The unique package name within its ecosystem.
The severity of the vulnerability.
Conditions that identify vulnerable versions of this vulnerability’s package.
Details pertaining to the package version that patches this vulnerability.
object
The package version that patches this vulnerability.
The severity of the advisory.
The classification of the advisory.
Details for the advisory pertaining to the Common Vulnerability Scoring System.
object
The overall CVSS score of the advisory.
The full CVSS vector string for the advisory.
object
object
The CVSS 3 vector string.
The CVSS 3 score.
object
The CVSS 4 vector string.
The CVSS 4 score.
The EPSS scores as calculated by the Exploit Prediction Scoring System.
object
Details for the advisory pertaining to Common Weakness Enumeration.
A CWE weakness assigned to the advisory.
object
The unique CWE ID.
The short, plain text name of the CWE.
Values that identify this advisory among security information sources.
An advisory identifier.
object
The type of advisory identifier.
The value of the advisory identifer.
Links to additional advisory information.
A link to additional advisory information.
object
The URL of the reference.
The time that the advisory was published in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
The time that the advisory was last modified in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
The time that the advisory was withdrawn in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Details pertaining to one vulnerable version range for the advisory.
object
Details for the vulnerable package.
object
The package’s language or package management ecosystem.
The unique package name within its ecosystem.
The severity of the vulnerability.
Conditions that identify vulnerable versions of this vulnerability’s package.
Details pertaining to the package version that patches this vulnerability.
object
The package version that patches this vulnerability.
The REST API URL of the alert resource.
The GitHub URL of the alert resource.
The time that the alert was created in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
The time that the alert was last updated in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
The time that the alert was dismissed in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
A GitHub user.
object
The reason that the alert was dismissed.
An optional comment associated with the alert’s dismissal.
The time that the alert was no longer detected and was considered fixed in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
The time that the alert was auto-dismissed in ISO 8601 format: YYYY-MM-DDTHH:MM:SSZ.
Information about an active dismissal request for this Dependabot alert.
object
The unique identifier of the dismissal request.
The current status of the dismissal request.
The user who requested the dismissal.
object
The unique identifier of the user.
The login name of the user.
The date and time when the dismissal request was created.
The API URL to get more information about this dismissal request.
The users assigned to this alert.
A GitHub user.
object
Examples
{ "number": 2, "state": "dismissed", "dependency": { "package": { "ecosystem": "pip", "name": "django" }, "manifest_path": "path/to/requirements.txt", "scope": "runtime" }, "security_advisory": { "ghsa_id": "GHSA-rf4j-j272-fj86", "cve_id": "CVE-2018-6188", "summary": "Django allows remote attackers to obtain potentially sensitive information by leveraging data exposure from the confirm_login_allowed() method, as demonstrated by discovering whether a user account is inactive", "description": "django.contrib.auth.forms.AuthenticationForm in Django 2.0 before 2.0.2, and 1.11.8 and 1.11.9, allows remote attackers to obtain potentially sensitive information by leveraging data exposure from the confirm_login_allowed() method, as demonstrated by discovering whether a user account is inactive.", "vulnerabilities": [ { "package": { "ecosystem": "pip", "name": "django" }, "severity": "high", "vulnerable_version_range": ">= 2.0.0, < 2.0.2", "first_patched_version": { "identifier": "2.0.2" } }, { "package": { "ecosystem": "pip", "name": "django" }, "severity": "high", "vulnerable_version_range": ">= 1.11.8, < 1.11.10", "first_patched_version": { "identifier": "1.11.10" } } ], "severity": "high", "cvss": { "vector_string": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "score": 7.5 }, "cvss_severities": { "cvss_v3": { "vector_string": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "score": 7.5 }, "cvss_v4": { "vector_string": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N", "score": 8.7 } }, "cwes": [ { "cwe_id": "CWE-200", "name": "Exposure of Sensitive Information to an Unauthorized Actor" } ], "identifiers": [ { "type": "GHSA", "value": "GHSA-rf4j-j272-fj86" }, { "type": "CVE", "value": "CVE-2018-6188" } ], "references": [ { "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-6188" }, { "url": "https://github.com/advisories/GHSA-rf4j-j272-fj86" }, { "url": "https://usn.ubuntu.com/3559-1/" }, { "url": "https://www.djangoproject.com/weblog/2018/feb/01/security-releases/" }, { "url": "http://www.securitytracker.com/id/1040422" } ], "published_at": "2018-10-03T21:13:54Z", "updated_at": "2022-04-26T18:35:37Z", "withdrawn_at": null }, "security_vulnerability": { "package": { "ecosystem": "pip", "name": "django" }, "severity": "high", "vulnerable_version_range": ">= 2.0.0, < 2.0.2", "first_patched_version": { "identifier": "2.0.2" } }, "url": "https://api.github.com/repos/octocat/hello-world/dependabot/alerts/2", "html_url": "https://github.com/octocat/hello-world/security/dependabot/2", "created_at": "2022-06-15T07:43:03Z", "updated_at": "2022-08-23T14:29:47Z", "dismissed_at": "2022-08-23T14:29:47Z", "dismissed_by": { "login": "octocat", "id": 1, "node_id": "MDQ6VXNlcjE=", "avatar_url": "https://github.com/images/error/octocat_happy.gif", "gravatar_id": "", "url": "https://api.github.com/users/octocat", "html_url": "https://github.com/octocat", "followers_url": "https://api.github.com/users/octocat/followers", "following_url": "https://api.github.com/users/octocat/following{/other_user}", "gists_url": "https://api.github.com/users/octocat/gists{/gist_id}", "starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}", "subscriptions_url": "https://api.github.com/users/octocat/subscriptions", "organizations_url": "https://api.github.com/users/octocat/orgs", "repos_url": "https://api.github.com/users/octocat/repos", "events_url": "https://api.github.com/users/octocat/events{/privacy}", "received_events_url": "https://api.github.com/users/octocat/received_events", "type": "User", "site_admin": false }, "dismissed_reason": "tolerable_risk", "dismissed_comment": "This alert is accurate but we use a sanitizer.", "fixed_at": null, "assignees": []}Bad Request
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Scim Error
object
Example generated
{ "message": "example", "documentation_url": "example", "detail": "example", "status": 1, "scimType": "example", "schemas": [ "example" ]}Forbidden
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Resource not found
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Conflict
Basic Error
object
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"}Validation failed, or the endpoint has been spammed.
Validation Error Simple
object
Example generated
{ "message": "example", "documentation_url": "example", "errors": [ "example" ]}