Skip to main content

private_vulnerability_reports

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

Overview

Nameprivate_vulnerability_reports
TypeResource
Idgithub.security_advisories.private_vulnerability_reports

Fields

The following fields are returned by SELECT queries:

SELECT not supported for this resource, use SHOW METHODS to view available operations for the resource.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
create_private_vulnerability_reportinsertowner, repo, summary, descriptionReport a security vulnerability to the maintainers of the repository.
See "Privately reporting a security vulnerability" for more information about private vulnerability reporting.

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.

INSERT examples

Report a security vulnerability to the maintainers of the repository.
See "Privately reporting a security vulnerability" for more information about private vulnerability reporting.

INSERT INTO github.security_advisories.private_vulnerability_reports (
summary,
description,
vulnerabilities,
cwe_ids,
severity,
cvss_vector_string,
start_private_fork,
owner,
repo
)
SELECT
'{{ summary }}' /* required */,
'{{ description }}' /* required */,
'{{ vulnerabilities }}',
'{{ cwe_ids }}',
'{{ severity }}',
'{{ cvss_vector_string }}',
{{ start_private_fork }},
'{{ owner }}',
'{{ repo }}'
RETURNING
cve_id,
ghsa_id,
author,
closed_at,
collaborating_teams,
collaborating_users,
created_at,
credits,
credits_detailed,
cvss,
cvss_severities,
cwe_ids,
cwes,
description,
html_url,
identifiers,
private_fork,
published_at,
publisher,
severity,
state,
submission,
summary,
updated_at,
url,
vulnerabilities,
withdrawn_at
;