GET/repos/{owner}/{repo}/vulnerability-alerts

Check if vulnerability alerts are enabled for a repository

Shows whether dependency alerts are enabled or disabled for a repository. The authenticated user must have admin read access to the repository. For more information, see "About security alerts for vulnerable dependencies".

  • 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
204Response if repository is enabled with vulnerability alerts
404Not Found if repository is not enabled with vulnerability alerts

Error handling

A 404 is returned: Not Found if repository is not enabled with vulnerability alerts.

Was this helpful?