mirror of
https://github.com/outline/outline.git
synced 2026-11-29 08:39:20 +03:00
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:
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() {
|
||||
|
||||
Reference in new issue
Block a user