Check if private vulnerability reporting is enabled for a repository
GET
/repos/{owner}/{repo}/private-vulnerability-reporting
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”.
Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ” owner
required
string
The account owner of the repository. The name is not case sensitive.
repo
required
string
The name of the repository without the .git extension. The name is not case sensitive.
Responses
Section titled “ Responses ”Private vulnerability reporting status
Media type application/json
object
enabled
required
Whether or not private vulnerability reporting is enabled for the repository.
boolean
Examples
Example default
{ "enabled": true}Bad Request
Basic Error
Basic Error
object
message
string
documentation_url
string
url
string
status
string
Example generated
{ "message": "example", "documentation_url": "example", "url": "example", "status": "example"} Scim Error
Scim Error
object
message
string
documentation_url
string
detail
string
status
integer
scimType
string
schemas
Array<string>
Example generated
{ "message": "example", "documentation_url": "example", "detail": "example", "status": 1, "scimType": "example", "schemas": [ "example" ]}