PATCH /repos/{owner}/{repo}/security-advisories/{ghsa_id}
Update a repository security advisory using its GitHub Security Advisory (GHSA) identifier.
In order to update any security advisory, the authenticated user must be a security manager or administrator of that repository, or a collaborator on the repository security advisory.
OAuth app tokens and personal access tokens (classic) need the repo
or repository_advisories:write
scope to use this endpoint.
Servers
- https://api.github.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
repo |
String | Yes |
The name of the repository without the |
owner |
String | Yes |
The account owner of the repository. The name is not case sensitive. |
ghsa_id |
String | Yes |
The GHSA (GitHub Security Advisory) identifier of the advisory. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
cve_id |
String | No |
The Common Vulnerabilities and Exposures (CVE) ID. |
credits[] |
Array | No |
A list of users receiving credit for their participation in the security advisory. |
credits[].type |
String | Yes |
The type of credit the user is receiving. Possible values:
|
credits[].login |
String | Yes |
The username of the user credited. |
cvss_vector_string |
String | No |
The CVSS vector that calculates the severity of the advisory. You must choose between setting this field or |
description |
String | No |
A detailed description of what the advisory impacts. |
collaborating_users[] |
Array | No |
A list of usernames who have been granted write access to the advisory. |
cwe_ids[] |
Array | No |
A list of Common Weakness Enumeration (CWE) IDs. |
collaborating_teams[] |
Array | No |
A list of team slugs which have been granted write access to the advisory. |
vulnerabilities[] |
Array | No |
A product affected by the vulnerability detailed in a repository security advisory. |
vulnerabilities[].patched_versions |
String | No |
The package version(s) that resolve the vulnerability. |
vulnerabilities[].vulnerable_functions[] |
Array | No |
The functions in the package that are affected. |
vulnerabilities[].vulnerable_version_range |
String | No |
The range of the package versions affected by the vulnerability. |
vulnerabilities[].package |
Object | Yes |
The name of the package affected by the vulnerability. |
vulnerabilities[].package.ecosystem |
String | Yes |
The package's language or package management ecosystem. Possible values:
|
vulnerabilities[].package.name |
String | No |
The unique package name within its ecosystem. |
state |
String | No |
The state of the advisory. Possible values:
|
summary |
String | No |
A short summary of the advisory. |
severity |
String | No |
The severity of the advisory. You must choose between setting this field or Possible values:
|
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.