Dependency Graph API in GraphQL enables you to retrieve information about a repository’s dependency graph. But that’s not all; GH has added a lightweight Repository Vulnerability Alerts API in GraphQL so you can get your security alerts through the API. You can stay up-to-date with the most recent changes using a webhooks that trigger when alerts are created, dismissed, or resolved.
Repository Vulnerability Alerts Webhooks
introduced a new webhook event for repositories called repository_vulnerability_alert. You can get webhooks for create, dismiss, and resolve actions.