To run the queries in this repository:
- 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.
- When the codespace finishes setting up, press
Ctrl/CMD + Shift + Pand typeCodeQL: Install Pack Dependencies. Choose the queries you are interested in from the dropdown and pressOK. This will install the CodeQL library files required to run the CodeQL queries. - Press
Ctrl/Cmd + Shift + Rto reload the window to see syntax highlighting etc. - 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.
- Open the query file you are interested in, right-click and choose
CodeQL: Run Query on selected databasefrom the dropdowns.