Skip to content

Commit 57f7f3b

Browse files
Potential fix for code scanning alert no. 25: Shell command built from environment values
Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
1 parent ec4a8b0 commit 57f7f3b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/check-replay-stubs.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { danger, warn } from "danger";
2-
import { execSync } from "child_process";
2+
import { execSync, execFileSync } from "child_process";
33
import fs from "fs";
44
import path from "path";
55

@@ -23,7 +23,7 @@ const oldSrc = path.join(process.cwd(), "replay-stubs-old-src");
2323

2424
// Tool for decompiling JARs.
2525
execSync(`curl -L -o ${jsDist}/jd-cli.zip https://github.com/intoolswetrust/jd-cli/releases/download/jd-cli-1.2.0/jd-cli-1.2.0-dist.zip`);
26-
execSync(`unzip -o ${jsDist}/jd-cli.zip -d ${jsDist}`);
26+
execFileSync("unzip", ["-o", `${jsDist}/jd-cli.zip`, "-d", jsDist]);
2727

2828
const newJarPath = path.join(jsDist, "replay-stubs.jar");
2929
fs.copyFileSync("packages/core/android/libs/replay-stubs.jar", newJarPath);

0 commit comments

Comments
 (0)