POST /repos/{owner}/{repo}/security-advisories/reports
Report a security vulnerability to the maintainers of the repository. See "Privately reporting a security vulnerability" for more information about private vulnerability reporting.
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. |
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 |
---|---|---|---|
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 | Yes |
A detailed description of what the advisory impacts. |
cwe_ids[] |
Array | No |
A list of Common Weakness Enumeration (CWE) IDs. |
vulnerabilities[] |
Array | No |
An array of products 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. |
summary |
String | Yes |
A short summary of the advisory. |
start_private_fork |
Boolean | No |
Whether to create a temporary private fork of the repository to collaborate on a fix. Default value: false |
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.