List Dependabot alerts for a repository
GET
/repos/{owner}/{repo}/dependabot/alerts
dependabot
security_events
scope to use this endpoint with private repositories.You can also use tokens with the
public_repo
scope for public repositories only.GitHub Apps must have Dependabot alerts read permission to use this endpoint.
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.github.com/repos///dependabot/alerts'
Response Response Example
200 - Example 1
[
{
"created_at": "2019-08-24T14:15:22Z",
"dependency": {
"manifest_path": "string",
"package": {
"ecosystem": "string",
"name": "string"
},
"scope": "development"
},
"dismissed_at": "2019-08-24T14:15:22Z",
"dismissed_by": {
"avatar_url": "https://github.com/images/error/octocat_happy.gif",
"email": "string",
"events_url": "https://api.github.com/users/octocat/events{/privacy}",
"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}",
"gravatar_id": "41d064eb2195891e12d0413f63227ea7",
"html_url": "https://github.com/octocat",
"id": 1,
"login": "octocat",
"name": "string",
"node_id": "MDQ6VXNlcjE=",
"organizations_url": "https://api.github.com/users/octocat/orgs",
"received_events_url": "https://api.github.com/users/octocat/received_events",
"repos_url": "https://api.github.com/users/octocat/repos",
"site_admin": true,
"starred_at": "\"2020-07-09T00:17:55Z\"",
"starred_url": "https://api.github.com/users/octocat/starred{/owner}{/repo}",
"subscriptions_url": "https://api.github.com/users/octocat/subscriptions",
"type": "User",
"url": "https://api.github.com/users/octocat"
},
"dismissed_comment": "string",
"dismissed_reason": "fix_started",
"fixed_at": "2019-08-24T14:15:22Z",
"html_url": "http://example.com",
"number": 0,
"security_advisory": {
"cve_id": "string",
"cvss": {
"score": 0,
"vector_string": "string"
},
"cwes": [
{
"cwe_id": "string",
"name": "string"
}
],
"description": "string",
"ghsa_id": "string",
"identifiers": [
{
"type": "CVE",
"value": "string"
}
],
"published_at": "2019-08-24T14:15:22Z",
"references": [
{
"url": "http://example.com"
}
],
"severity": "low",
"summary": "string",
"updated_at": "2019-08-24T14:15:22Z",
"vulnerabilities": [
{
"first_patched_version": {
"identifier": "string"
},
"package": {
"ecosystem": "string",
"name": "string"
},
"severity": "low",
"vulnerable_version_range": "string"
}
],
"withdrawn_at": "2019-08-24T14:15:22Z"
},
"security_vulnerability": {
"first_patched_version": {
"identifier": "string"
},
"package": {
"ecosystem": "string",
"name": "string"
},
"severity": "low",
"vulnerable_version_range": "string"
},
"state": "dismissed",
"updated_at": "2019-08-24T14:15:22Z",
"url": "http://example.com"
}
]
Request
Path Params
owner
stringÂ
required
repo
stringÂ
required
Query Params
state
stringÂ
optional
dismissed
, fixed
, open
severity
stringÂ
optional
low
, medium
, high
, critical
ecosystem
stringÂ
optional
composer
, go
, maven
, npm
, nuget
, pip
, pub
, rubygems
, rust
package
stringÂ
optional
manifest
stringÂ
optional
scope
stringÂ
optional
sort
stringÂ
optional
created
means when the alert was created.updated
means when the alert's state last changed.direction
stringÂ
optional
page
integerÂ
optional
before
or after
instead.per_page
integerÂ
optional
before
stringÂ
optional
after
stringÂ
optional
first
integerÂ
optional
This parameter must not be used in combination with
last
.Instead, use
per_page
in combination with after
to fetch the first page of results.last
integerÂ
optional
This parameter must not be used in combination with
first
.Instead, use
per_page
in combination with before
to fetch the last page of results.Responses
Modified at 2023-08-15 02:59:24