# CodeScoring

**Кастомный импортер в GitLab**: [CodeScoring.json](https://gitlab.cybercodereview.ru/cybercodereview/importers/-/blob/main/CodeScoring.json)

**Образ с интеграцией**: стандартный образ johnny от вендора с постфиксом "-busybox"

**Минимальная версия аудитора для работы с интеграцией:** 2.1.2

**Необходимые для запуска переменные:**

* $API\_TOKEN - токен пользователя CodeScoring
* $API\_URL - URL в виде <https://example.com>

**Запуск задания аудитора:**

```bash
johnny scan dir --api_token $API_TOKEN --api_url $API_URL -f "text, sarif>>/data/$REPORT_FILE_NAME" ./$SEC_CODE_FOLDER
```

При добавлении следующих аргументов к команде в CodeScoring будет создан проект с ссылкой на репозиторий в названии, в котором также будут сохранены результаты сканирования:

```
--create-project --save-results --project $REPOSITORY
```


---

# 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.cybercodereview.ru/security-center/scanners/integracii/codescoring.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.
