Ray Thurn Void retweetledi

Ways to mitigate GitHub/npm supply chain attacks:
- Use pnpm
- Block all postinstall scripts unless necessary
- Use minimumReleaseAge
- Set up Trusted Publisher on npm/GitHub
- Disallow npm tokens
- Require 2FA for all org members
- Avoid pull_request_target
- If repo is public, consider restricting PRs to collaborators only
- Pin GitHub actions (peter-evans/create-pull-request@v8 → peter-evans/create-pull-request@5f6978f...)
English










