Skip to main content
POST
Error

Authorizations

Authorization
string
header
required

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

scanId
string<uuid>
required

UUID of the scan. Use the id field of a scan from listScans.

Body

application/json
repository
string

Repository full name (owner/repo) to upload SARIF for.

ref
string

Git ref to associate with the SARIF upload.

commit_sha
string

40-character commit SHA. If omitted, Strix resolves it from ref.

checkout_uri
string<uri>

Repository checkout URI recorded in the SARIF upload so GitHub can map file paths.

github_api_base_url
string<uri>

Override GitHub API base URL for GitHub Enterprise Server.

Response

GitHub SARIF upload result.

repository
string
required
ref
string
required
commit_sha
string
required
sarif_upload
object
required
result_count
integer
required
code_owner_patterns
integer
required