From 692e4a5a243b6049052559fb6377c2abacec1811 Mon Sep 17 00:00:00 2001 From: bchanot Date: Sat, 14 Nov 2026 18:31:44 +0100 Subject: [PATCH] fix(settings): npm -g left to the auto-mode soft_deny --- lib/tests/push-guard.test.sh | 9 +++++---- settings.json | 4 ---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/tests/push-guard.test.sh b/lib/tests/push-guard.test.sh index 11acf7b..dbfb9ac 100644 --- a/lib/tests/push-guard.test.sh +++ b/lib/tests/push-guard.test.sh @@ -329,10 +329,11 @@ check T41-new-deny-present "$missing" "" # version.txt passes removed_ok_until (T42e): empty the list in that bump. removed_ok_until=3.0.0 grep -v '^#' > "$WORK/removed-ok" <<'EOF' -# mixed `* -v /:*` form never matches; `-v /:/*` kept (2026-10-23) -Bash(docker run * -v /:*) -# mixed `* :*` form never matches; ` :**` kept (2026-10-23) -Bash(git push * :*) +# soft_deny "Global npm installs" decides (user 2026-11-12) +Bash(npm install -g *) +Bash(npm i -g *) +Bash(npm install --global *) +Bash(npm i --global *) EOF cur=$(tr -d '[:space:]' < "$ROOT/version.txt") expired="" diff --git a/settings.json b/settings.json index 2a21e7b..ac7cd03 100644 --- a/settings.json +++ b/settings.json @@ -140,10 +140,6 @@ "Bash(crontab *)", "Bash(systemctl *)", "Bash(service *)", - "Bash(npm install -g *)", - "Bash(npm i -g *)", - "Bash(npm install --global *)", - "Bash(npm i --global *)", "Read(**/.env)", "Read(**/.env.*)", "Read(**/secrets/**)",