Skip to main content
POST
Create a draft GitHub Security Advisory

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

id
integer
required

Body

application/json
repoId
integer<int64>
required
Required range: x >= 1
summary
string
required
Minimum string length: 1
description
string
required
Minimum string length: 1
ecosystem
enum<string>
required

Package ecosystem. Case is ignored.

Available options:
rubygems,
npm,
pip,
maven,
nuget,
composer,
go,
rust,
erlang,
actions,
pub,
swift,
other
packageName
string
required
Minimum string length: 1
affectedVersions
string
required
Minimum string length: 1
patchedVersions
string
required
Minimum string length: 1
reporterGithubLogin
string | null

GitHub account to credit as the reporter. A leading @ is optional.

startPrivateFork
boolean
default:false

Ask GitHub to create a temporary private fork for remediation.

Response

Draft advisory created in GitHub

ghsaId
string
required
url
string<uri>
required

GitHub repository advisory URL.

state
string
required
Example:

"draft"

timelineCommentRecorded
boolean
required

True when Hackrate recorded the internal timeline comment. A false value still confirms that GitHub created the draft.