Skip to main content

private_vulnerability_reporting

Creates, updates, deletes, gets or lists a private_vulnerability_reporting resource.

Overview

Nameprivate_vulnerability_reporting
TypeResource
Idgithub.repos.private_vulnerability_reporting

Fields

The following fields are returned by SELECT queries:

Private vulnerability reporting status

NameDatatypeDescription
enabledbooleanWhether or not private vulnerability reporting is enabled for the repository.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_private_vulnerability_reportingselectowner, repoReturns 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".
enable_private_vulnerability_reportingexecowner, repoEnables 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."
disable_private_vulnerability_reportingexecowner, repoDisables 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".

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
ownerstringThe account owner of the repository. The name is not case sensitive.
repostringThe name of the repository without the .git extension. The name is not case sensitive.

SELECT examples

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

SELECT
enabled
FROM github.repos.private_vulnerability_reporting
WHERE owner = '{{ owner }}' -- required
AND repo = '{{ repo }}' -- required
;

Lifecycle Methods

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

EXEC github.repos.private_vulnerability_reporting.enable_private_vulnerability_reporting 
@owner='{{ owner }}' --required,
@repo='{{ repo }}' --required
;