Skip to content

Commit 0eb518a

Browse files
authored
fix: close shell injection in upload_assets.cjs (incomplete fix from d07e64c) (#17736)
1 parent 4b8d0a8 commit 0eb518a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

actions/setup/js/upload_assets.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ async function main() {
153153
fs.copyFileSync(assetSourcePath, targetFileName);
154154

155155
// Add to git
156-
await exec.exec(`git add "${targetFileName}"`);
156+
await exec.exec("git", ["add", targetFileName]);
157157

158158
uploadCount++;
159159
hasChanges = true;

0 commit comments

Comments
 (0)