skillscript-runtime 0.19.1 → 0.19.2
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.
|
@@ -435,14 +435,14 @@ function collectSecuritySignals(source) {
|
|
|
435
435
|
const shellMatch = /shell\s*\(\s*command\s*=\s*"([^"]+)"/.exec(line);
|
|
436
436
|
if (shellMatch !== null) {
|
|
437
437
|
shellOps++;
|
|
438
|
-
const cmd = shellMatch[1]
|
|
438
|
+
const cmd = shellMatch[1].trim();
|
|
439
439
|
const isUnsafe = /unsafe\s*=\s*true/.test(line);
|
|
440
440
|
if (isUnsafe) {
|
|
441
441
|
unsafeShell++;
|
|
442
442
|
shellBinaries.add("bash");
|
|
443
443
|
} else if (cmd.length > 0 && !cmd.startsWith("${") && !cmd.startsWith("$(")) {
|
|
444
444
|
const binary = /^([^\s]+)/.exec(cmd);
|
|
445
|
-
if (binary !== null) shellBinaries.add(binary[1]
|
|
445
|
+
if (binary !== null) shellBinaries.add(binary[1]);
|
|
446
446
|
}
|
|
447
447
|
}
|
|
448
448
|
if (/approved\s*=\s*"/.test(line)) approvedOps++;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "skillscript-runtime",
|
|
3
|
-
"version": "0.19.
|
|
3
|
+
"version": "0.19.2",
|
|
4
4
|
"description": "Runtime, compiler, lint, CLI, and dashboard for Skillscript — a small declarative language for authoring agent workflows.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Scott Shwarts <scotts@pobox.com>",
|