Skip to content

Commit 90c4d88

Browse files
Update intructions
1 parent 013bc3b commit 90c4d88

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

CodeQL_Queries/README.md

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
To run the queries in this repository:
22
1. Click the green "Code" button > Codespaces > Create a codespace on main. A new codespace will be created for you with VS Code CodeQL extension preinstalled.
3-
2. When the codespace finishes setting up, open the terminal, and find the path to the codeql binary (which comes preinstalled with the VS Code CodeQL extension) with the command:
4-
```bash
5-
find ~ -type f -name codeql -executable 2>/dev/null
6-
```
7-
It will most likely look similar to this:
8-
```
9-
/home/codespace/.vscode-remote/data/User/globalStorage/github.vscode-codeql/distribution1/codeql/codeql
10-
```
11-
3. Go to the language folder with the query you want to run, and using the CodeQL binary, run `codeql pack install`. For example:
12-
```bash
13-
cd cpp
14-
/home/codespace/.vscode-remote/data/User/globalStorage/github.vscode-codeql/distribution1/codeql/codeql pack install
15-
```
16-
This will install the CodeQL library files required to run the CodeQL queries.
3+
2. When the codespace finishes setting up, press `Ctrl/CMD + Shift + P` and type `CodeQL: Install Pack Dependencies`. Choose the queries you are interested in from the dropdown and press `OK`. This will install the CodeQL library files required to run the CodeQL queries.
174
4. Press `Ctrl/Cmd + Shift + R` to reload the window to see syntax highlighting etc.
185
5. Check the README in the folder with the query you are interested in, and add the database listed in the README to your VS Code CodeQL extension.
196
6. Open the query file you are interested in, right-click and choose `CodeQL: Run Query on selected database` from the dropdowns.

0 commit comments

Comments
 (0)