Skip to content

Commit

Permalink
feat: update create extractor
Browse files Browse the repository at this point in the history
  • Loading branch information
GeekMasher committed Aug 14, 2023
1 parent 05385c6 commit 24b960d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/create-extractor-pack.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,15 @@ else
exit 1
fi

if which codeql >/dev/null; then
CODEQL_BINARY="codeql"
elif gh codeql >/dev/null; then
CODEQL_BINARY="gh codeql"
else
gh extension install github/gh-codeql
CODEQL_BINARY="gh codeql"
fi

cargo build --release
cargo run --release --bin codeql-extractor-iac -- generate --dbscheme ql/lib/iac.dbscheme --library ql/lib/codeql/iac/ast/internal/TreeSitter.qll
$CODEQL_BINARY query format -i ql/lib/codeql/iac/ast/internal/TreeSitter.qll
Expand Down

0 comments on commit 24b960d

Please sign in to comment.