---
title: "code-scanning-analysis-sarif-file"
url: "https://kiwi.arashsheyda.me/apis/internal-document-hub-admin-api-1/versions/b3b7a508-ad5a-4abd-bb6f-6a4cdb164859/schemas/code-scanning-analysis-sarif-file"
---

> Full API specification: https://kiwi.arashsheyda.me/apis/internal-document-hub-admin-api-1/versions/b3b7a508-ad5a-4abd-bb6f-6a4cdb164859.md

# code-scanning-analysis-sarif-file

A Base64 string representing the SARIF file to upload. You must first compress your SARIF file using [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then translate the contents of the file into a Base64 encoding string. For more information, see "[SARIF support for code scanning](https://docs.github.com/enterprise-server@3.0/code-security/secure-coding/sarif-support-for-code-scanning)."

## OpenAPI definition

```yaml
openapi: 3.0.3
info:
  title: GitHub v3 REST API
  version: 1.1.4
servers:
  - url: "{protocol}://{hostname}/api/v3"
    variables:
      hostname:
        description: Self-hosted Enterprise Server or Enterprise Cloud hostname
        default: HOSTNAME
      protocol:
        description: Self-hosted Enterprise Server or Enterprise Cloud protocol
        default: http
components:
  schemas:
    code-scanning-analysis-sarif-file:
      description: A Base64 string representing the SARIF file to upload. You must
        first compress your SARIF file using
        [`gzip`](http://www.gnu.org/software/gzip/manual/gzip.html) and then
        translate the contents of the file into a Base64 encoding string. For
        more information, see "[SARIF support for code
        scanning](https://docs.github.com/enterprise-server@3.0/code-security/secure-coding/sarif-support-for-code-scanning)."
      type: string
```
