summaryrefslogtreecommitdiffstats
path: root/taskcluster/scripts/misc/generate-codeql-db-javascript.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xtaskcluster/scripts/misc/generate-codeql-db-javascript.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/taskcluster/scripts/misc/generate-codeql-db-javascript.sh b/taskcluster/scripts/misc/generate-codeql-db-javascript.sh
new file mode 100755
index 0000000000..329a472140
--- /dev/null
+++ b/taskcluster/scripts/misc/generate-codeql-db-javascript.sh
@@ -0,0 +1,17 @@
+#! /bin/bash -vex
+
+set -x -e
+
+export PATH=$MOZ_FETCHES_DIR/node/bin:$PATH
+
+cd /builds/worker
+
+$MOZ_FETCHES_DIR/codeql/codeql database create \
+ --language=javascript \
+ -J=-Xmx32768M \
+ --source-root=$GECKO_PATH \
+ codeql-database
+
+# TODO Switch this to zst per 1637381 when this is used for static analysis jobs
+tar cf codeql-db-javascript.tar codeql-database
+xz codeql-db-javascript.tar