Most of the recent supply chain attacks specifically target stealing secrets from development environments.
> But hey thanks for proving me right about the unhinged complaints.
I'm sorry if I'm upsetting you, but I am not complaining or trying to provoke you.
"Just check in the dependencies and review them" is not a revolutionary idea. It makes sense in many contexts.
But it is not practical in the overwhelming majority of contexts. React's last minor version bump included 100 files and ~5k changes. It also bumped the versions of 6 direct dependencies, which in turn bumped dependencies, etc.
It is not reasonable for a small (or even medium) team using react to manually review all of the changes and all the changes in react's transitive deps each time they need to update. The problem grows exponentially with all of the other common projects and libraries likely being used in a front end project(vite, react router, redux, vitest, etc).
pick a few non-trivial npm projects and try to audit all of the changes (for all transitive dependencies) for a few releases that bumped dependencies.