Link a pull request to a vulnerability
Stores a pull request or merge request URL as the vulnerability’s fix PR. Works for every finding, including black-box findings with no repository. Accepts GitHub pull requests, GitLab merge requests and Bitbucket pull requests on any host, including self-hosted instances. Strix attaches the pull request to each Linear or Jira ticket of the finding. A previous pull request on the finding is replaced and removed from those tickets. Tickets created later pick up the stored pull request automatically. Returns 409 when the stored pull request changed while the request was in flight.
Authorizations
API token obtained from the Tokens endpoint or CLI device login. Include as Authorization: Bearer <token>. Requests made with a managed CLI session also include X-Strix-Workspace: <organization_id> to pin a process to the workspace it started in; recovery endpoints report the current workspace after a concurrent switch.
Path Parameters
ID of the vulnerability. Use the id field of a finding from listVulnerabilities.
Body
Pull request or merge request URL.
"https://github.com/acme/api/pull/42"
The pull request the caller believes the vulnerability currently stores; null when it should have none. When present, the request only succeeds if that is still the case and returns 409 otherwise. Use it to restore a link without overwriting one added in the meantime.
null
Response
Pull request linked. ticket_links reports the attachment to the finding's tickets.