Skip to content

Commit 2693171

Browse files
committed
feat: Add guidance about npx/yarn dlx
The secure coding guidelines have been updated to ask contributors not to use `npx` and `yarn dlx`, because they don't update the lockfile and leave us more vulnerable to supply-chain attacks.
1 parent 6687405 commit 2693171

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

docs/secure-coding-guidelines.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,9 @@ The guidelines in this policy were gathered primarily from the [OWASP Top 10](ht
121121

122122
#### Dependency Integrity
123123

124-
- Use a lockfile or pinned dependencies to maintain control over which version of each dependency is used
124+
- Use a lockfile to maintain control over which version of each dependency is used
125+
- Do not use `npx` or `yarn dlx`
126+
- These commands do not update the lockfile, so we have no control over which versions are installed. This leaves us vulnerable to supply-chain attacks.
125127

126128
#### Avoid Deprecated and Unmaintained Packages
127129

0 commit comments

Comments
 (0)