> For the complete documentation index, see [llms.txt](https://docs.meterian.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.meterian.io/online-integrations/meterian-scanner-github-action/code-scanning.md).

# 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
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
