Search + K

Command Palette

Search for a command to run...

Sign In

Check if private vulnerability reporting is enabled for a repository

GET /repos/{owner}/{repo}/private-vulnerability-reporting
Copy endpoint
https://api.github.com

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

path Path Parameters

Name Type
owner required

The account owner of the repository. The name is not case sensitive.

string
repo required

The name of the repository without the .git extension. The name is not case sensitive.

string

Responses

200 application/json

Private vulnerability reporting status

{ enabled: boolean; }

Client Errors

422 application/json

Bad Request

interface BasicError {
message?: string;
documentation_url?: string;
url?: string;
status?: string;
}