From 2138be21f599d7c7fc3690c6ec7a45d8e874271b Mon Sep 17 00:00:00 2001 From: Maciej Domanski <38883201+ahpaleus@users.noreply.github.com> Date: Fri, 21 Jun 2024 07:47:59 +0200 Subject: [PATCH] Update 10-advanced.md --- content/docs/static-analysis/codeql/10-advanced.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/content/docs/static-analysis/codeql/10-advanced.md b/content/docs/static-analysis/codeql/10-advanced.md index 5bc5c043..b9a2d90d 100644 --- a/content/docs/static-analysis/codeql/10-advanced.md +++ b/content/docs/static-analysis/codeql/10-advanced.md @@ -201,6 +201,12 @@ version.) ## Writing custom queries +{{< hint info >}} +To use CodeQL, you need access to the standard libraries and queries. We recommend using the starter workspace. +1. Clone the [vscode-codeql-starter](https://github.com/github/vscode-codeql-starter.git) repository to your computer: `git clone --recursive https://github.com/github/vscode-codeql-starter.git`. +2. In VSCode, click **File** -> **Open Workspace from File** and open the `vscode-codeql-starter.code-workspace` file from the `vscode-codeql-starter` repository. +{{< /hint >}} + QL is a declarative language and CodeQL queries are expressed using an SQL-like syntax on the following form: