Commit 658bfca
authored
fix(security): add .npmrc with ignore-scripts=true (#1083)
This prevents malicious postinstall scripts from running during `npm
install`, both in CI and locally.
### Changes
- Added `.npmrc` with `ignore-scripts=true`
- Removed `.npmrc` from `.gitignore` (auth tokens belong in `~/.npmrc`,
not project-level)
- Added explicit `npx cypress install` in integration workflow (Cypress
needs its binary downloaded via postinstall)1 parent 5762a18 commit 658bfca
3 files changed
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | 58 | | |
56 | 59 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
111 | | - | |
| 110 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
0 commit comments