Skip to content

Commit 1ab62ee

Browse files
leodidoona-agent
andcommitted
docs: add security note about ignore-scripts for yarn packages
Co-authored-by: Ona <no-reply@ona.com>
1 parent 0cc793e commit 1ab62ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ config:
165165
test: ["yarn", "test"]
166166
```
167167
168+
> **Security note**: Leeway uses `--frozen-lockfile` by default to ensure reproducible builds and prevent dependency confusion attacks. As per [OWASP recommendations](https://cheatsheetseries.owasp.org/cheatsheets/NPM_Security_Cheat_Sheet.html#3-minimize-attack-surfaces-by-ignoring-run-scripts), consider adding `ignore-scripts=true` to your `.npmrc` to further minimize the attack surface from malicious postinstall scripts.
169+
168170
### Docker packages
169171
```YAML
170172
config:

0 commit comments

Comments
 (0)