Follow these steps to get it to run in your machine:
- Pick the right version and release for your OS:
2- Extract the files and place them on a folder in you machine.
3- Give the binary the right permission to be executed.
sudo chmod +x codeql
- Using symbolic link add that to your OSās binary folder
- Test this to see if the binary works from any place
- (Optional) You can download some āCodeQL packsā containing pre-compiled queries you would like to run. To do this, runĀ
codeqlĀ packĀ downloadĀ <pack-name>Ā [...pack-name]
, whereĀpack-name
Ā is the name of the pack you want to download. The core query packs are a good place to start. They are: - codeql/cpp-queries
- codeql/csharp-queries
- codeql/go-queries
- codeql/java-queries
- codeql/javascript-queries
- codeql/python-queries
- codeql/ruby-queries
ln -s /the/place/of/the/codeql /usr/local/bin
codeql --help
# This will list all the supported languages by codeql by default
codeql resolve languages
Alternatively, you can download query packs during the analysis by using theĀ --download
Ā flag of theĀ codeqlĀ databaseĀ analyze
Ā command.