Check if vulnerability alerts are enabled for a repository
GET
/repos/{owner}/{repo}/vulnerability-alerts
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".
Request Request Example
Shell
JavaScript
Java
Swift
curl--location--request GET 'https://api.github.com/repos///vulnerability-alerts'
Response Response Example
204 - Example 1
{}
Request
Path Params
Responses
🟢204Response if repository is enabled with vulnerability alerts
application/json
Body
🟠404Not Found if repository is not enabled with vulnerability alerts