Sample - GitHub REST API
GET/repos/{owner}/{repo}/private-vulnerability-reporting

Check if private vulnerability reporting is enabled for a repository

Returns a boolean indicating whether or not private vulnerability reporting is enabled for the repository. For more information, see "Evaluating the security settings of a repository".

  • 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
200Private vulnerability reporting status
enabledbooleanrequired
Whether or not private vulnerability reporting is enabled for the repository.
422Bad Request
messagestringoptional
documentation_urlstringoptional
urlstringoptional
statusstringoptional

Error handling

A 422 is returned: Bad Request.