From c01a039d230b1024ea38881242d2ad5cf91b0085 Mon Sep 17 00:00:00 2001 From: Michael Hohn Date: Sun, 21 Aug 2022 20:59:06 -0700 Subject: [PATCH] Partially revert qlpack to get working cli command This, from the README, now works: codeql database analyze \ -v \ --ram=14000 \ -j12 \ --rerun \ --search-path $HOME/local/codeql-v2.9.3/ql \ --format=sarif-latest \ --output cpp-sqli.sarif \ -- \ $DB \ $SRCDIR/SqlInjection.ql It failed with ERROR: Referenced pack 'codeql/cpp-all' not found. (/Users/hohn/local/codeql-dataflow-sql-injection/qlpack.yml:1,1-1) when using dependencies: --- qlpack.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/qlpack.yml b/qlpack.yml index 1a73718..deb832b 100644 --- a/qlpack.yml +++ b/qlpack.yml @@ -1,7 +1,7 @@ -name: cpp-sql-injection -version: 0.0.0 -dependencies: - # This uses the latest version of the codeql/cpp-all library. - # You may want to change to a more precise semver string. - codeql/cpp-all: "*" - +name: sample/cpp-sql-injection +version: 0.0.1 +groups: + - cpp + - queries +libraryPathDependencies: codeql/cpp-all +extractor: cpp