logoalt Hacker News

bodashyesterday at 12:50 PM3 repliesview on HN

I compiled a list of NPM best practices one can adopt to reduce supply chain attack risks (even if there's no perfect security preventions, _always_): https://github.com/bodadotsh/npm-security-best-practices

Discussion on HN last time: https://news.ycombinator.com/item?id=45326754


Replies

herpdyderpyesterday at 2:22 PM

For anyone publishing packages for others to use: please don't pin exact dependency versions. Doing so requires all your users to set "overrides" in their own package.json when your dependencies have vulnerabilities.

btbuildemyesterday at 4:14 PM

I have a shorter list of NPM best practices:

1. Don't

giantg2yesterday at 12:52 PM

Do you know of anything similar for pip?

show 1 reply