Files
codeql-javascript-multiflow/cruft/make-db
2023-12-01 14:28:03 -08:00

16 lines
318 B
Bash
Executable File

#!/bin/bash
cd ~/local/codeql-javascript-multiflow/
DB=./js-sqli-db-$(git rev-parse --short HEAD)
echo $DB
test -d "$DB" && rm -fR "$DB"
mkdir -p "$DB"
codeql database create --language=javascript -s . -j 8 -v $DB
# Check it
echo "The DB is in $DB"
echo "Content check:"
unzip -v $DB/src.zip |egrep '(add|sample)'