Fix code scanning alert no. 67: Shell command built from environment values

Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
Tom MoorandCopilot Autofix powered by AI authored and GitHub committed 2024-10-01 19:05:20 -07:00
1 parent b37074304a
commit 19d5ef5694
1 file changed
+2 -2
@@ -1,6 +1,6 @@
"use strict";
const { execSync } = require("child_process");
const { execFileSync } = require("child_process");
const path = require("path");
/** @type {import('sequelize-cli').Migration} */
@@ -20,7 +20,7 @@ module.exports = {
`server/scripts/${scriptName}`
);
execSync(`node ${scriptPath}`, { stdio: "inherit" });
execFileSync("node", [scriptPath], { stdio: "inherit" });
},
async down() {