# PT Application Inspector

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

**Образ с интеграцией**: `registry.cybercodereview.ru/cybercodereview/security-images/ptai-cli-plugin:5.0.0`

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

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

* $API\_TOKEN - токен доступа CI/CD
* $API\_URL - URL в виде <https://example.com>

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

```bash
echo '{
    "$schema": "https://json.schemastore.org/aiproj-1.7.json",
    "Version": "1.7",
    "ProjectName": "'"$REPOSITORY"'",
    "ProgrammingLanguages": [],
    "ScanModules": [
        "StaticCodeAnalysis",
        "PatternMatching",
        "Components",
        "SoftwareCompositionAnalysis",
        "Configuration"
    ],
    "PmTaintSettings": {
        "UsePublicAnalysisMethod": true
    },
    "ScaSettings": {
        "BuildDependenciesGraph": true
    }
}' > scan_settings.json
ptai-cli-plugin json-ast --input=./$SEC_CODE_FOLDER --sarif-report-file=/data/$REPORT_FILE_NAME --settings-json=scan_settings.json --url=$API_URL --token=$API_TOKEN
```


---

# 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/pt-application-inspector.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.
