fix(docker): escape single quotes in secret values for Docker command

This commit is contained in:
Mauricio Siu
2025-10-25 00:25:25 -06:00
parent 71c01ff30f
commit 05b20193c2

View File

@@ -151,7 +151,7 @@ export const getDockerCommand = (
);
const joinedSecrets = Object.entries(secrets)
.map(([key, value]) => `${key}='${value}'`)
.map(([key, value]) => `${key}='${value.replace(/'/g, "'\"'\"'")}'`)
.join(" ");
for (const key in secrets) {