AFLplusplus/utils/autodict_ql/build-codeql.sh
Microsvuln eea020ee6a
Update build-codeql.sh
Update codeql version to 2.7.3
2021-12-09 12:48:04 +08:00

18 lines
517 B
Bash

cd ~
if [ -d "codeql-home" ]; then
echo "Exist !"
exit 1
fi
mkdir codeql-home
cd codeql-home
git clone https://github.com/github/codeql.git codeql-repo
git clone https://github.com/github/codeql-go.git
wget https://github.com/github/codeql-cli-binaries/releases/download/v2.7.3/codeql-linux64.zip
unzip codeql-linux64.zip
mv codeql codeql-cli
export "PATH=~/codeql-home/codeql-cli/:$PATH"
echo "export PATH=~/codeql-home/codeql-cli/:$PATH" >> ~/.bashrc
codeql resolve languages
codeql resolve qlpacks
codeql