Check if vulnerability alerts are enabled for a repository

Note: Enabling and disabling dependency alerts for a repository using the REST API is currently available for developers to preview. To access these new endpoints during the preview period, you must provide a custom media type in the Accept header:

application/vnd.github.dorian-preview+json

Warning: The API may change without advance notice during the preview period. Preview features are not supported for production use. If you experience any issues, contact GitHub Support or GitHub Premium Support.

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

GET /repos/:owner/:repo/vulnerability-alerts

Response if repository is enabled with vulnerability alerts

Status: 204 No Content

Response if repository is not enabled with vulnerability alerts

Status: 404 Not Found