feat(ci): improve npm supply chain security - improve Dependabot config#11874
feat(ci): improve npm supply chain security - improve Dependabot config#11874
Conversation
|
Review the following changes in direct dependencies. Learn more about Socket for GitHub.
|
✅ [V2]
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
Size Change: 0 B Total Size: 11.9 MB ℹ️ View Unchanged
|
⚡️ Lighthouse report for the deploy preview of this PR
|
|
Size Change: 0 B Total Size: 12.3 MB ℹ️ View Unchanged
|
|
Warning Review the following alerts detected in dependencies. According to your organization's Security Policy, it is recommended to resolve "Warn" alerts. Learn more about Socket for GitHub.
|
Motivation
Improve our CI security and dependency upgrade workflows
Following various recommendations from different sources to reduce the risk of npm supply chain attacks targeting Docusaurus and its transitive dependencies
Sources:
Main changes:
yarn install --frozen-lockfilein CInpxin CIexclude-pathoption (new) to excludeexamples/**cooldownto delay updatesAlso included: a workflow to detect compromised packages periodically and on each PR:
sfw(Socket Firewall Free) to block known malware (with existing lockfile)sfwand without a lockfile to find potentially compromised dependenciesPlanned later, in other PRs:
Things to explore further:
${{ secrets.GITHUB_TOKEN }}andcontents: writein other workflowsTest Plan
CI
Test links
https://deploy-preview-11874--docusaurus-2.netlify.app/