Sample - GitHub REST API
GET/repos/{owner}/{repo}/automated-security-fixes

Check if Dependabot security updates are enabled for a repository

Shows whether Dependabot security updates are enabled, disabled or paused for a repository. The authenticated user must have admin read access to the repository. For more information, see "Configuring Dependabot security updates".

  • RetriesRetries up to 2×, 500ms backoff, 30s timeout.

2 parameters
ownerstringrequired
The account owner of the repository. The name is not case sensitive.
repostringrequired
The name of the repository without the `.git` extension. The name is not case sensitive.

2 status codes
200Response if Dependabot is enabled
enabledbooleanrequired
Whether Dependabot security updates are enabled for the repository.
pausedbooleanrequired
Whether Dependabot security updates are paused for the repository.
404Not Found if Dependabot is not enabled for the repository

Error handling

A 404 is returned: Not Found if Dependabot is not enabled for the repository.