Attacks on open source aren't slowing down. Neither is GitHub. Our teams have rolled out trusted publishing, npm package scanning with human reviews, and guidance for Actions users (linked in comments). If you use GitHub Actions, take three steps today: 1. Turn on CodeQL (free for public repos) 2. Pin Actions to full commit SHAs 3. Review your workflows for script-injection risks
Glad to see the platform supporting security by default. But could you share more about “npm package scanning with human reviews”? What I don’t get is: 1. Why there is resistance at GitHub to scanning new package versions in the publishing workflow for malware, prior to its published? I’ve even offered to provide our malicious package detection capabilities to GitHub to integrate natively to the PMs but there’s no decision on that. 2. There should be automated APIs to report malicious packages discovered by trusted researchers like us, so they can be instantly removed from npm. Pypi provides us this functionality but npm doesn’t. Would love to work with you all to further secure the npm ecosystem… feel free to DM me.
Shameless plug 😅 🔌 but pinning Actions to commit SHAs is something I recommend the customers I work with and that's why I built a cli extension that can help with this: https://github.com/amenocal/gh-pin-actions 🙇♂️ Hopefully this helps out!
Happy to see GitHub actions getting some love. Please don't stop, GitHub Actions need so much more. Love using them but need them to be more feature rich like other similar tools
Please don't slow down. Continue supporting npm, and improving the package ecosystem. Pinning is not easy, but even when used, there's a chance that users pin to the malicious version. I've seen this in IR cases where developers think they're doing the right thing. We need to prevent the problems before they reach the package registries.
Strong direction. From experience, the gap is rarely awareness it’s enforcement. Teams know about pinning SHAs and scanning, but without guardrails in CI, these practices drift over time. Would be interesting to see more automated enforcement at the org level.
Alexis Wales thank you for this post and your guidance it’s especially important for young startups to have healthy habits.
This is excellent.
Great to see GitHub actions on this
https://github.blog/security/supply-chain-security/securing-the-open-source-supply-chain-across-github/