@poe-platform/safe-bash 0.1.42 → 0.1.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4483,14 +4483,9 @@ var warned = /* @__PURE__ */ new WeakSet();
|
|
|
4483
4483
|
function warnIfHostProcessEnv(env) {
|
|
4484
4484
|
if (!env || typeof process === "undefined" || !process.env) return;
|
|
4485
4485
|
if (warned.has(env)) return;
|
|
4486
|
-
if (env !== process.env
|
|
4486
|
+
if (env !== process.env) return;
|
|
4487
4487
|
warned.add(env);
|
|
4488
|
-
console.warn("[safe-bash] warning: the shell `env` is the host `process.env
|
|
4489
|
-
}
|
|
4490
|
-
function isShallowCopyOfProcessEnv(env) {
|
|
4491
|
-
const keys = Object.keys(env);
|
|
4492
|
-
if (keys.length !== Object.keys(process.env).length) return false;
|
|
4493
|
-
return keys.every((key) => env[key] === process.env[key]);
|
|
4488
|
+
console.warn("[safe-bash] warning: the shell `env` is the host `process.env`. Scripts executed in this shell can read every value in it, including secrets; on Cloudflare Workers with nodejs_compat, process.env contains the Worker's secret bindings. Pass only the variables your scripts need. See docs/issues/safe-bash-cloudflare-security-audit.md (finding 1).");
|
|
4494
4489
|
}
|
|
4495
4490
|
|
|
4496
4491
|
// packages/safe-bash/src/shell/parser.ts
|