Skip to main content

Эта версия GitHub Enterprise Server будет прекращена 2026-04-09. Исправления выпускаться не будут даже при критических проблемах безопасности. Для повышения производительности, повышения безопасности и новых функций выполните обновление до последней версии GitHub Enterprise Server. Чтобы получить справку по обновлению, обратитесь в службу поддержки GitHub Enterprise.

Creating CodeQL CLI database bundles

Create a database bundle with CodeQL troubleshooting information.

Кто может использовать эту функцию?

CodeQL доступен для следующих типов репозитория:

Предупреждение

Пакеты баз данных CodeQL CLI содержат копию исходного кода, анализируемую CodeQL, поэтому мы рекомендуем совместно использовать эти пакеты только пользователям, которым разрешен доступ к этому исходному коду.

Примечание.

В этой статье описываются функции, доступные в пакете CodeQL CLI 2.18.4 в первоначальном выпуске GitHub Enterprise Server 3.15.

Если администратор сайта обновил версию CodeQL CLI до более новой версии, ознакомьтесь с версией GitHub Enterprise Cloud этой статьи, чтобы узнать о последних функциях.

The following CodeQL CLI command syntax is suggested when creating a database bundle for troubleshooting purposes. This sample database bundle command requires CodeQL CLI version 2.17.6 or higher.

codeql database bundle --output=codeql-debug-artifacts.zip --include-diagnostics --include-logs --include-results -- <dir>

For this command, <dir> must be the path to the directory where the CodeQL database was created.

The successful command execution creates a zip file called codeql-debug-artifacts.zip which contains CodeQL troubleshooting information. That file is the database bundle.

This command assumes that the --log-dir command line argument was not used for the database create and database analyze commands. When that command line argument is used, the log files created by those commands will not be included with the database bundle.

Increasing the verbosity for database create and database analyze

If the database create and database analyze commands are not detailed enough for troubleshooting purposes, you can increase their verbosity.

Both commands support the --verbosity command line argument which can be set to progress++ prior to creating a database bundle.