Skip to content

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”.

API method documentation

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.

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"
}