QA
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→

More Git & GitHub Interview Questions

Beginner LevelGit & GitHub

Compare git rebase versus git merge and explain how git bisect finds regressions.

Beginner LevelGit & GitHub

What is the difference between git init and git clone?

Beginner LevelGit & GitHub

What are the Three Trees in Git (Working Directory, Staging Area / Index, Commit History)?