← All tags

Dependabot API Reference

Endpoints to manage Dependabot.

25 endpoints tagged dependabot, each listing its parameters and possible responses. Search or scroll the index below to jump to a specific endpoint.

No endpoints match your search.

List Dependabot alerts for an enterprise

GET /enterprises/{enterprise}/dependabot/alerts

Lists Dependabot alerts for repositories that are owned by the specified enterprise.

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
classificationquerynoA comma-separated list of vulnerability classifications. If specified, only alerts for vulnerabilities with these classifications will be returned.
statequerynoA comma-separated list of states. If specified, only alerts with these states will be returned.
severityquerynoA comma-separated list of severities. If specified, only alerts with these severities will be returned.
ecosystemquerynoA comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.
packagequerynoA comma-separated list of package names. If specified, only alerts for these packages will be returned.
epss_percentagequerynoCVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:
hasquerynoFilters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.
assigneequerynoFilter alerts by assignees.
scopequerynoThe scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.
sortquerynoThe property by which to sort the results.
directionquerynoThe direction to sort the results by.
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
404Resource not foundyes
422Validation failed, or the endpoint has been spammed.yes

Lists the repositories Dependabot can access in an enterprise

GET /enterprises/{enterprise}/dependabot/repository-access

Lists repositories that enterprise admins have allowed Dependabot to access when updating dependencies across organizations in the enterprise.

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.
pagequerynoThe page number of results to fetch.
per_pagequerynoNumber of results per page.

Responses

StatusDescriptionHas JSON body
200Responseyes
403Forbiddenyes
404Resource not foundyes

Updates Dependabot's repository access list for an enterprise

PATCH /enterprises/{enterprise}/dependabot/repository-access

Updates repositories according to the list of repositories that enterprise admins have given Dependabot access to when they've updated dependencies across organizations in the enterprise.

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.

Responses

StatusDescriptionHas JSON body
204Responseno
403Forbiddenyes
404Resource not foundyes

Set the default repository access level for Dependabot in an enterprise

PUT /enterprises/{enterprise}/dependabot/repository-access/default-level

Sets the default level of repository access Dependabot will have while performing an update across organizations in the enterprise. Available values are:

Parameters

NameInRequiredDescription
enterprisepathyesThe slug version of the enterprise name.

Responses

StatusDescriptionHas JSON body
204Responseno
403Forbiddenyes
404Resource not foundyes

List Dependabot alerts for an organization

GET /orgs/{org}/dependabot/alerts

Lists Dependabot alerts for an organization.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
classificationquerynoA comma-separated list of vulnerability classifications. If specified, only alerts for vulnerabilities with these classifications will be returned.
statequerynoA comma-separated list of states. If specified, only alerts with these states will be returned.
severityquerynoA comma-separated list of severities. If specified, only alerts with these severities will be returned.
ecosystemquerynoA comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.
packagequerynoA comma-separated list of package names. If specified, only alerts for these packages will be returned.
epss_percentagequerynoCVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:
artifact_registry_urlquerynoA comma-separated list of artifact registry URLs. If specified, only alerts for repositories with storage records matching these URLs will be returned.
artifact_registryquerynoA comma-separated list of Artifact Registry name strings. If specified, only alerts for repositories with storage records matching these registries will be returned.
hasquerynoFilters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.
assigneequerynoFilter alerts by assignees.
runtime_riskquerynoA comma-separated list of runtime risk strings. If specified, only alerts for repositories with deployment records matching these risks will be returned.
scopequerynoThe scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.
sortquerynoThe property by which to sort the results.
directionquerynoThe direction to sort the results by.
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
400Bad Requestyes
403Forbiddenyes
404Resource not foundyes
422Validation failed, or the endpoint has been spammed.yes

Lists the repositories Dependabot can access in an organization

GET /orgs/{org}/dependabot/repository-access

Lists repositories that organization admins have allowed Dependabot to access when updating dependencies.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
pagequerynoThe page number of results to fetch.
per_pagequerynoNumber of results per page.

Responses

StatusDescriptionHas JSON body
200Responseyes
403Forbiddenyes
404Resource not foundyes

Updates Dependabot's repository access list for an organization

PATCH /orgs/{org}/dependabot/repository-access

Updates repositories according to the list of repositories that organization admins have given Dependabot access to when they've updated dependencies.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
204Responseno
403Forbiddenyes
404Resource not foundyes

Set the default repository access level for Dependabot

PUT /orgs/{org}/dependabot/repository-access/default-level

Sets the default level of repository access Dependabot will have while performing an update. Available values are:

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
204Responseno
403Forbiddenyes
404Resource not foundyes

List organization secrets

GET /orgs/{org}/dependabot/secrets

Lists all secrets available in an organization without revealing their

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
pagequerynoThe page number of the results to fetch. For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes

Get an organization public key

GET /orgs/{org}/dependabot/secrets/public-key

Gets your public key, which you need to encrypt secrets. You need to

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
200Responseyes

Get an organization secret

GET /orgs/{org}/dependabot/secrets/{secret_name}

Gets a single organization secret without revealing its encrypted value.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
secret_namepathyesThe name of the secret.

Responses

StatusDescriptionHas JSON body
200Responseyes

Create or update an organization secret

PUT /orgs/{org}/dependabot/secrets/{secret_name}

Creates or updates an organization secret with an encrypted value. Encrypt your secret using

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
secret_namepathyesThe name of the secret.

Responses

StatusDescriptionHas JSON body
201Response when creating a secretyes
204Response when updating a secretno

Delete an organization secret

DELETE /orgs/{org}/dependabot/secrets/{secret_name}

Deletes a secret in an organization using the secret name.

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
secret_namepathyesThe name of the secret.

Responses

StatusDescriptionHas JSON body
204Responseno

List selected repositories for an organization secret

GET /orgs/{org}/dependabot/secrets/{secret_name}/repositories

Lists all repositories that have been selected when the visibility

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
secret_namepathyesThe name of the secret.
pagequerynoThe page number of the results to fetch. For more information, see "Using pagination in the REST API."
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes

Set selected repositories for an organization secret

PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories

Replaces all repositories for an organization secret when the visibility

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
secret_namepathyesThe name of the secret.

Responses

StatusDescriptionHas JSON body
204Responseno

Add selected repository to an organization secret

PUT /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}

Adds a repository to an organization secret when the visibility for

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
secret_namepathyesThe name of the secret.
repository_idpathyes

Responses

StatusDescriptionHas JSON body
204No Content when repository was added to the selected listno
409Conflict when visibility type is not set to selectedno

Remove selected repository from an organization secret

DELETE /orgs/{org}/dependabot/secrets/{secret_name}/repositories/{repository_id}

Removes a repository from an organization secret when the visibility

Parameters

NameInRequiredDescription
orgpathyesThe organization name. The name is not case sensitive.
secret_namepathyesThe name of the secret.
repository_idpathyes

Responses

StatusDescriptionHas JSON body
204Response when repository was removed from the selected listno
409Conflict when visibility type not set to selectedno

List Dependabot alerts for a repository

GET /repos/{owner}/{repo}/dependabot/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

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.
classificationquerynoA comma-separated list of vulnerability classifications. If specified, only alerts for vulnerabilities with these classifications will be returned.
statequerynoA comma-separated list of states. If specified, only alerts with these states will be returned.
severityquerynoA comma-separated list of severities. If specified, only alerts with these severities will be returned.
ecosystemquerynoA comma-separated list of ecosystems. If specified, only alerts for these ecosystems will be returned.
packagequerynoA comma-separated list of package names. If specified, only alerts for these packages will be returned.
manifestquerynoA comma-separated list of full manifest paths. If specified, only alerts for these manifests will be returned.
epss_percentagequerynoCVE Exploit Prediction Scoring System (EPSS) percentage. Can be specified as:
hasquerynoFilters the list of alerts based on whether the alert has the given value. If specified, only alerts meeting this criterion will be returned.
assigneequerynoFilter alerts by assignees.
scopequerynoThe scope of the vulnerable dependency. If specified, only alerts with this scope will be returned.
sortquerynoThe property by which to sort the results.
directionquerynoThe direction to sort the results by.
beforequerynoA cursor, as given in the Link header. If specified, the query only searches for results before this cursor. For more information, see "Using pagination in the REST API."
afterquerynoA cursor, as given in the Link header. If specified, the query only searches for results after this cursor. For more information, see "Using pagination in the REST API."
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
400Bad Requestyes
403Forbiddenyes
404Resource not foundyes
422Validation failed, or the endpoint has been spammed.yes

Get a Dependabot alert

GET /repos/{owner}/{repo}/dependabot/alerts/{alert_number}

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

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.
alert_numberpathyesThe number that identifies a Dependabot alert in its repository.

Responses

StatusDescriptionHas JSON body
200Responseyes
304Not modifiedno
403Forbiddenyes
404Resource not foundyes

Update a Dependabot alert

PATCH /repos/{owner}/{repo}/dependabot/alerts/{alert_number}

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."

Parameters

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.
alert_numberpathyesThe number that identifies a Dependabot alert in its repository.

Responses

StatusDescriptionHas JSON body
200Responseyes
400Bad Requestyes
403Forbiddenyes
404Resource not foundyes
409Conflictyes
422Validation failed, or the endpoint has been spammed.yes

List repository secrets

GET /repos/{owner}/{repo}/dependabot/secrets

Lists all secrets available in a repository without revealing their encrypted

Parameters

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.
per_pagequerynoThe number of results per page (max 100). For more information, see "Using pagination in the REST API."
pagequerynoThe page number of the results to fetch. For more information, see "Using pagination in the REST API."

Responses

StatusDescriptionHas JSON body
200Responseyes

Get a repository public key

GET /repos/{owner}/{repo}/dependabot/secrets/public-key

Gets your public key, which you need to encrypt secrets. You need to

Parameters

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.

Responses

StatusDescriptionHas JSON body
200Responseyes

Get a repository secret

GET /repos/{owner}/{repo}/dependabot/secrets/{secret_name}

Gets a single repository secret without revealing its encrypted value.

Parameters

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.
secret_namepathyesThe name of the secret.

Responses

StatusDescriptionHas JSON body
200Responseyes

Create or update a repository secret

PUT /repos/{owner}/{repo}/dependabot/secrets/{secret_name}

Creates or updates a repository secret with an encrypted value. Encrypt your secret using

Parameters

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.
secret_namepathyesThe name of the secret.

Responses

StatusDescriptionHas JSON body
201Response when creating a secretyes
204Response when updating a secretno

Delete a repository secret

DELETE /repos/{owner}/{repo}/dependabot/secrets/{secret_name}

Deletes a secret in a repository using the secret name.

Parameters

NameInRequiredDescription
ownerpathyesThe account owner of the repository. The name is not case sensitive.
repopathyesThe name of the repository without the .git extension. The name is not case sensitive.
secret_namepathyesThe name of the secret.

Responses

StatusDescriptionHas JSON body
204Responseno