# Code scanning

You can display the results of the Meterian analysis directly on your repository on GitHub via the Static Analysis Results Interchange Format (SARIF) report. Here is how it's done with [our GitHub action](https://github.com/marketplace/actions/meterian-scanner).

Request the generation of a SARIF report from the Meterian GitHub action

```
uses: MeterianHQ/meterian-github-action@v1.0.17
with:
  cli_args: "--report-sarif=report.sarif"
```

Upload the report via GitHub's official action [upload-sarif](https://github.com/github/codeql-action/tree/v3/upload-sarif)

```
uses: github/codeql-action/upload-sarif@v3
if: success() || failure()
with:
  sarif_file: report.sarif
```

{% hint style="info" %}
In the above example we are using the workflow step special functions `success()` and `failure()` to ensure the upload always takes place&#x20;
{% endhint %}

Once the upload is completed, GitHub will create code scanning alerts in your repository using information from the SARIF report we have just uploaded as part of the code scanning experience.&#x20;

View the results in the Security tab of your repository under the Vulnerability alerts section

<figure><img src="/files/q3w6kwXeVR5TSpNf4slq" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.meterian.io/online-integrations/meterian-scanner-github-action/code-scanning.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
