Skip to content

Enable private vulnerability reporting for a repository

PUT
/repos/{owner}/{repo}/private-vulnerability-reporting

Enables private vulnerability reporting for a repository. The authenticated user must have admin access to the repository. For more information, see “Privately reporting a security vulnerability.”

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.

A header with no content is returned.

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