GraphQL API v4 - Checking whether VulnerabilityAlerts are enabled #24412
-
I cannot seem to detemine whether a repository truly has no security velnerabilities or whether security alerts are disabled for the reposistory as both seem to return empty vulnerabilityAlerts. Is there a way I can determine the difference between having no vulnerabilityAlerts vs having security alerts disabled? query:
response:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found this response: which led me to the endpoint in the V3 api /repos/:owner/:repo/vulnerability-alerts which can be used to enable and disable vulnerability-alerts. It appears a GET request will return a 204 if enabled and a 404 if not. |
Beta Was this translation helpful? Give feedback.
I found this response:
https://github.community/t5/GitHub-API-Development-and/Security-vulnerability-alerts/m-p/23416/highlight/true#M1660
which led me to the endpoint in the V3 api
/repos/:owner/:repo/vulnerability-alerts
which can be used to enable and disable vulnerability-alerts. It appears a GET request will return a 204 if enabled and a 404 if not.