Skip to main content

repository_advisories

Overview

Namerepository_advisories
TypeResource
Idgithub.security_advisories.repository_advisories

Fields

NameDatatypeDescription
descriptionstringA detailed description of what the advisory entails.
authornullThe author of the advisory.
closed_atstringThe date and time of when the advisory was closed, in ISO 8601 format.
collaborating_teamsarrayA list of teams that collaborate on the advisory.
collaborating_usersarrayA list of users that collaborate on the advisory.
created_atstringThe date and time of when the advisory was created, in ISO 8601 format.
creditsarray
credits_detailedarray
cve_idstringThe Common Vulnerabilities and Exposures (CVE) ID.
cvssobject
cwe_idsarrayA list of only the CWE IDs.
cwesarray
ghsa_idstringThe GitHub Security Advisory ID.
html_urlstringThe URL for the advisory.
identifiersarray
private_forknullA temporary private fork of the advisory's repository for collaborating on a fix.
published_atstringThe date and time of when the advisory was published, in ISO 8601 format.
publishernullThe publisher of the advisory.
severitystringThe severity of the advisory.
statestringThe state of the advisory.
submissionobject
summarystringA short summary of the advisory.
updated_atstringThe date and time of when the advisory was last updated, in ISO 8601 format.
urlstringThe API URL for the advisory.
vulnerabilitiesarray
withdrawn_atstringThe date and time of when the advisory was withdrawn, in ISO 8601 format.

Methods

NameAccessible byRequired ParamsDescription
get_repository_advisorySELECTghsa_id, owner, repoGet a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
You can access any published security advisory on a public repository.
You must authenticate using an access token with the repo scope or repository_advisories:read permission
in order to get a published security advisory in a private repository, or any unpublished security advisory that you have access to.

You can access an unpublished security advisory from a repository if you are a security manager or administrator of that repository, or if you are a
collaborator on the security advisory.
list_org_repository_advisoriesSELECTorgLists repository security advisories for an organization.

To use this endpoint, you must be an owner or security manager for the organization, and you must use an access token with the repo scope or repository_advisories:write permission.
list_repository_advisoriesSELECTowner, repoLists security advisories in a repository.
You must authenticate using an access token with the repo scope or repository_advisories:read permission
in order to get published security advisories in a private repository, or any unpublished security advisories that you have access to.

You can access unpublished security advisories from a repository if you are a security manager or administrator of that repository, or if you are a collaborator on any security advisory.
create_repository_advisoryINSERTowner, repo, data__description, data__summary, data__vulnerabilitiesCreates a new repository security advisory.
You must authenticate using an access token with the repo scope or repository_advisories:write permission to use this endpoint.

In order to create a draft repository security advisory, you must be a security manager or administrator of that repository.
create_private_vulnerability_reportEXECowner, repo, data__description, data__summaryReport a security vulnerability to the maintainers of the repository.
See "Privately reporting a security vulnerability" for more information about private vulnerability reporting.
create_repository_advisory_cve_requestEXECghsa_id, owner, repoIf you want a CVE identification number for the security vulnerability in your project, and don't already have one, you can request a CVE identification number from GitHub. For more information see "Requesting a CVE identification number."

You may request a CVE for public repositories, but cannot do so for private repositories.

You must authenticate using an access token with the repo scope or repository_advisories:write permission to use this endpoint.

In order to request a CVE for a repository security advisory, you must be a security manager or administrator of that repository.
update_repository_advisoryEXECghsa_id, owner, repoUpdate a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
You must authenticate using an access token with the repo scope or repository_advisories:write permission to use this endpoint.

In order to update any security advisory, you must be a security manager or administrator of that repository,
or a collaborator on the repository security advisory.