Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 3.18 KB

File metadata and controls

37 lines (26 loc) · 3.18 KB
title shortTitle versions topics type intro allowTitleToDifferFromFilename
Configuring access to the CodeQL CLI
CodeQL CLI access
fpt ghec ghes
*
*
*
Advanced Security
Code scanning
CodeQL
reference
The {% data variables.product.prodname_codeql %} for {% data variables.product.prodname_vscode %} extension uses the {% data variables.product.prodname_codeql_cli %} to compile and run queries.
true

Configuring access to the {% data variables.product.prodname_codeql_cli %}

If you already have the {% data variables.product.prodname_codeql_cli %} installed and added to your PATH, the extension will use that version. This might be the case if you create your own {% data variables.product.prodname_codeql %} databases instead of downloading them from {% data variables.product.prodname_dotcom_the_website %}. For more information, see "AUTOTITLE."

Otherwise, the extension automatically manages access to the executable of the {% data variables.product.prodname_codeql_cli %} for you. This ensures that the {% data variables.product.prodname_codeql_cli %} is compatible with the {% data variables.product.prodname_codeql %} extension. You can also check for updates with the {% data variables.product.prodname_codeql %}: Check for CLI Updates command from the {% data variables.product.prodname_vscode_command_palette_shortname %}.

{% note %}

Notes:

  • The extension-managed {% data variables.product.prodname_codeql_cli %} is not accessible from the terminal. If you intend to use the CLI outside of the extension (for example to create databases), we recommend that you install your own copy of the {% data variables.product.prodname_codeql_cli %}."

  • To override the default behavior and use a specific version of the {% data variables.product.prodname_codeql_cli %}, you can specify the {% data variables.product.prodname_codeql_cli %} Executable Path in the extension settings. For more information, see "AUTOTITLE."

{% endnote %}

Troubleshooting

If you have any difficulty setting up access to the {% data variables.product.prodname_codeql_cli %}, check the {% data variables.product.prodname_codeql %} Extension log for error messages or to see the location of the {% data variables.product.prodname_codeql_cli %} being used. For more information, see "AUTOTITLE." In particular, in the Extension log you can see the location of the {% data variables.product.prodname_codeql_cli %} that is being used. This is useful if you want to see whether this is an extension-managed CLI or an external one.

If you use the extension-managed {% data variables.product.prodname_codeql_cli %}, the extension checks for updates automatically (or with the {% data variables.product.prodname_codeql %}: Check for CLI Updates command) and prompts you to accept the updated version. If you use an external CLI, you need to update it manually (when updates are necessary).