@node9/proxy 1.58.4 → 1.58.5
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.
- package/dist/cli.js +5 -3
- package/dist/cli.mjs +5 -3
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -53343,7 +53343,7 @@ function analyzeWorkflow(path70, content) {
|
|
|
53343
53343
|
file: path70,
|
|
53344
53344
|
signals,
|
|
53345
53345
|
mitigations: mitigations.length ? mitigations : void 0,
|
|
53346
|
-
fix: head === "root" ? "Do not check out the PR head into the workspace root under pull_request_target \u2014 check out the base ref, or isolate the head in a subdir (--add-dir). Add an actor gate and scope the agent tools." : "Add/verify an actor gate, scope the agent tools to read-only, and env-deny secrets. See Anthropic\u2019s claude-code-action security doc."
|
|
53346
|
+
fix: head === "root" && privileged ? "Do not check out the untrusted PR head into the workspace root under a privileged trigger (pull_request_target/workflow_run) \u2014 check out the base ref, or isolate the head in a subdir (--add-dir). Add an actor gate and scope the agent tools." : head === "root" ? "This runs under `pull_request` (fork PRs get a read-only token), so the head checkout is low-risk today \u2014 keep it on `pull_request` (not `pull_request_target`) and keep the actor gate + scoped tools." : "Add/verify an actor gate, scope the agent tools to read-only, and env-deny secrets. See Anthropic\u2019s claude-code-action security doc."
|
|
53347
53347
|
};
|
|
53348
53348
|
}
|
|
53349
53349
|
|
|
@@ -53517,12 +53517,14 @@ function renderScan(res) {
|
|
|
53517
53517
|
const head = res.worst === "critical" || res.worst === "high" ? import_chalk29.default.red.bold("\u26A0\uFE0F agent-security risk found") : res.worst ? import_chalk29.default.yellow("agent-security notes") : res.incomplete ? import_chalk29.default.yellow.bold("\u26A0\uFE0F INCOMPLETE \u2014 could not read all files") : import_chalk29.default.green("\u2705 agent-security: clean");
|
|
53518
53518
|
L.push(`\u{1F6E1}\uFE0F ${import_chalk29.default.bold("node9 scan-repo")} \xB7 ${res.source} \xB7 ${head}`);
|
|
53519
53519
|
L.push(import_chalk29.default.gray(` inspected ${res.inspected.length} config file(s), ${n} finding(s)`));
|
|
53520
|
-
if (res.incomplete)
|
|
53520
|
+
if (res.incomplete) {
|
|
53521
|
+
const rateLimited = res.notes.some((nt) => /rate limit/i.test(nt));
|
|
53521
53522
|
L.push(
|
|
53522
53523
|
import_chalk29.default.yellow.bold(
|
|
53523
|
-
" \u26A0\uFE0F
|
|
53524
|
+
rateLimited ? " \u26A0\uFE0F Rate-limited \u2014 some files were unread. NOT a clean bill of health; set GITHUB_TOKEN (or run `gh auth login`) and re-run." : " \u26A0\uFE0F A network error left some files unread. NOT a clean bill of health; re-run."
|
|
53524
53525
|
)
|
|
53525
53526
|
);
|
|
53527
|
+
}
|
|
53526
53528
|
L.push("");
|
|
53527
53529
|
for (const f of res.findings) {
|
|
53528
53530
|
L.push(
|
package/dist/cli.mjs
CHANGED
|
@@ -53336,7 +53336,7 @@ function analyzeWorkflow(path70, content) {
|
|
|
53336
53336
|
file: path70,
|
|
53337
53337
|
signals,
|
|
53338
53338
|
mitigations: mitigations.length ? mitigations : void 0,
|
|
53339
|
-
fix: head === "root" ? "Do not check out the PR head into the workspace root under pull_request_target \u2014 check out the base ref, or isolate the head in a subdir (--add-dir). Add an actor gate and scope the agent tools." : "Add/verify an actor gate, scope the agent tools to read-only, and env-deny secrets. See Anthropic\u2019s claude-code-action security doc."
|
|
53339
|
+
fix: head === "root" && privileged ? "Do not check out the untrusted PR head into the workspace root under a privileged trigger (pull_request_target/workflow_run) \u2014 check out the base ref, or isolate the head in a subdir (--add-dir). Add an actor gate and scope the agent tools." : head === "root" ? "This runs under `pull_request` (fork PRs get a read-only token), so the head checkout is low-risk today \u2014 keep it on `pull_request` (not `pull_request_target`) and keep the actor gate + scoped tools." : "Add/verify an actor gate, scope the agent tools to read-only, and env-deny secrets. See Anthropic\u2019s claude-code-action security doc."
|
|
53340
53340
|
};
|
|
53341
53341
|
}
|
|
53342
53342
|
|
|
@@ -53510,12 +53510,14 @@ function renderScan(res) {
|
|
|
53510
53510
|
const head = res.worst === "critical" || res.worst === "high" ? chalk29.red.bold("\u26A0\uFE0F agent-security risk found") : res.worst ? chalk29.yellow("agent-security notes") : res.incomplete ? chalk29.yellow.bold("\u26A0\uFE0F INCOMPLETE \u2014 could not read all files") : chalk29.green("\u2705 agent-security: clean");
|
|
53511
53511
|
L.push(`\u{1F6E1}\uFE0F ${chalk29.bold("node9 scan-repo")} \xB7 ${res.source} \xB7 ${head}`);
|
|
53512
53512
|
L.push(chalk29.gray(` inspected ${res.inspected.length} config file(s), ${n} finding(s)`));
|
|
53513
|
-
if (res.incomplete)
|
|
53513
|
+
if (res.incomplete) {
|
|
53514
|
+
const rateLimited = res.notes.some((nt) => /rate limit/i.test(nt));
|
|
53514
53515
|
L.push(
|
|
53515
53516
|
chalk29.yellow.bold(
|
|
53516
|
-
" \u26A0\uFE0F
|
|
53517
|
+
rateLimited ? " \u26A0\uFE0F Rate-limited \u2014 some files were unread. NOT a clean bill of health; set GITHUB_TOKEN (or run `gh auth login`) and re-run." : " \u26A0\uFE0F A network error left some files unread. NOT a clean bill of health; re-run."
|
|
53517
53518
|
)
|
|
53518
53519
|
);
|
|
53520
|
+
}
|
|
53519
53521
|
L.push("");
|
|
53520
53522
|
for (const f of res.findings) {
|
|
53521
53523
|
L.push(
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@node9/proxy",
|
|
3
|
-
"version": "1.58.
|
|
3
|
+
"version": "1.58.5",
|
|
4
4
|
"description": "The Sudo Command for AI Agents. Execution Security for Claude Code, Codex, Gemini, Cursor, Opencode, Pi, and any MCP server.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|