Intermediate LevelGit & GitHub
How does GitHub Dependabot automatically detect and patch vulnerable npm dependencies?
❓ Interview Prompt: Explain Dependabot alerts, dependabot.yml configuration, automated security pull requests, and package vulnerability scanning.
Dependabot monitors repository dependency manifests against the GitHub Advisory Database, creating automated pull requests to update packages with known CVE security vulnerabilities.
Code Implementation Example
yaml
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"💡Configuring Dependabot automated weekly npm dependency update PRs.
🎯 Interview Key Takeaway
Enable GitHub Dependabot security alerts and configure dependabot.yml to automate security patch PRs.
#Dependabot#Vulnerabilities#Security#Intermediate
Back to all Git & GitHub Questions→