- create a new repo based on this template
gh repo create <project repo> --public --clone --template pwntester/codeql-cs-template
- copy the zipped database into
databases/(its better to unzip it in the CS)
- init a new pack
codeql pack init seclab/test - add dependencies
codeql pack add codeql/java-all - install dependencies
codeql pack install - edit query
- create codeql submodule if needed
git submodule add https://github.com/github/codeqlgit commit -am 'Add CodeQL module'git push origin master
- update codeql submodule if needed:
git submodule initto initialize your local configuration filegit submodule updateto fetch all the data from that project and check out the appropriate commit listed in your superproject
- create a
queriesdirectory- create a
qlpack.ymldeclaring alibPathDependencies: codeql/java-all - edit query
- create a
- create the CS
gh cs create --repo <project repo>- ssh into the CS
gh cs ssh
gh cs deleteto remove and free the CSgh repo deleteto remove the repo if needed