Adopt @lavamoat/allow-scripts to gate npm install scripts
Disables dependency lifecycle scripts by default via .npmrc (ignore-scripts=true) so arbitrary packages cannot execute code at install time. An explicit allowlist in web/package.json opts specific packages back in, and CI/Docker/Taskfile now run allow-scripts after npm install to apply it. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -36,7 +36,7 @@ jobs:
|
||||
|
||||
- name: Install dependencies
|
||||
working-directory: web
|
||||
run: npm install
|
||||
run: npm install && npm exec -- allow-scripts
|
||||
|
||||
- name: Type check
|
||||
working-directory: web
|
||||
|
||||
Reference in New Issue
Block a user