---
title: "Get information about a SARIF upload"
method: GET
path: "/repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}"
tags: ["code-scanning"]
---

# Get information about a SARIF upload

`GET /repos/{owner}/{repo}/code-scanning/sarifs/{sarif_id}`

Gets information about a SARIF upload, including the status and the URL of the analysis that was uploaded so that you can retrieve details of the analysis. For more information, see "[Get a code scanning analysis for a repository](/rest/code-scanning/code-scanning#get-a-code-scanning-analysis-for-a-repository)."
OAuth app tokens and personal access tokens (classic) need the `security_events` scope to use this endpoint with private or public repositories, or the `public_repo` scope to use this endpoint with only public repositories.

## Path parameters

- `owner` string, required
- `repo` string, required
- `sarif_id` string, required

## Response `200`

Response

- CodeScanningSarifsStatus
  - `processing_status` 'pending' | 'complete' | 'failed' — `pending` files have not yet been processed, while `complete` means results from the SARIF have been stored. `failed` files have either not been processed at all, or could only be partially processed.
  - `analyses_url` string, uri, nullable — The REST API URL for getting the analyses associated with the upload.
  - `errors` string[], nullable — Any errors that ocurred during processing of the delivery.

## Other responses

- `403` — Response if GitHub Advanced Security is not enabled for this repository
- `404` — Not Found if the sarif id does not match any upload
- `503` — Service unavailable

---

[API](https://skmtc.net/github/apis/rest-api.md) · [All operations](https://skmtc.net/github/apis/rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/github/rest-api/versions/80850db290cd/schema)
