Skip to content

Commit 36232d7

Browse files
brynaryclaude
andauthored
ci: add --ignore-scripts to npm install for security (#9)
This prevents npm from executing any lifecycle scripts (including postinstall) during dependency installation, reducing the attack surface from malicious packages. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Claude <noreply@anthropic.com>
1 parent a489105 commit 36232d7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
node-version: ${{ matrix.node }}
3030

3131
- name: Install dependencies
32-
run: npm install
32+
run: npm install --ignore-scripts
3333

3434
- name: Run tests
3535
run: npm test

0 commit comments

Comments
 (0)