> For the complete documentation index, see [llms.txt](https://docs.ci.trust-in-soft.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ci.trust-in-soft.com/reference/status-badge.md).

# Add a status badge

## Quick guide

Add a status badge <img src="/files/-MBhso_LPLE7xFkZhUzd" alt="" data-size="line"> to your project's README by copying and pasting the below markdown template and inserting into it your project name and corresponding GitHub account:&#x20;

`[![TrustInSoft CI](https://ci.trust-in-soft.com/projects/<ACCOUNT_NAME>/<PROJECT_NAME>.svg?branch=master)](https://ci.trust-in-soft.com/projects/<ACCOUNT_NAME>/<PROJECT_NAME>)`

## More about the badge

A badge status is computed based on the statuses of the analyses that belong to the **latest** **valid** build. A build is **valid** if its result is complete, meaning that the build has not been canceled nor it is queued/running.

There are 3 possible statuses:

| Status  | Definition                                                                                                              |
| ------- | ----------------------------------------------------------------------------------------------------------------------- |
| Passing | All of the analyses in the latest valid build have the status "No undefined behavior".                                  |
| Failing | At least one analysis in the latest valid build does not have the status "No undefined behavior" so it should be fixed. |
| Unknown | There is not valid build for this project/branch.                                                                       |


---

# 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:

```
GET https://docs.ci.trust-in-soft.com/reference/status-badge.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.
