MOOBON

Start GitHub vulnerability management with DependabotRepository settings to turn on, and how it works

Published December 6, 20266 min read

When a vulnerability is found in a library your application uses, what matters is how quickly you notice and update. If your code is on GitHub, turning on Dependabot in the repository settings automates much of that. This article walks through what each item on the settings page does and which ones to turn on, using a real screen.

1. How Dependabot detects vulnerabilities

Dependabot does not inspect running servers. It compares the dependency files in your repository with a vulnerability database.

  1. It reads dependency files. From files such as package.json, package-lock.json, Gemfile.lock, composer.lock, requirements.txt, Dockerfile and GitHub Actions workflows, it builds a list of the packages and versions you use (the dependency graph). With a lock file, this includes the versions of indirect dependencies.
  2. It checks the list against a vulnerability database. The GitHub Advisory Database records, for each package, which versions are affected and which version fixes the problem. If your list contains an affected version, you get a Dependabot alert.
  3. It opens a pull request with the fix. If a fixed version exists, it opens a pull request that updates the version in the lock file. The pull request includes a summary of the vulnerability and the changelog, so you can merge it once tests pass.

In short, it compares the versions written in your repository with versions known to be vulnerable. Because the mechanism is simple, it needs no extra cost and no server-side setup.

2. Where the settings are

Open the repository's Settings and choose Advanced Security under "Security and quality" in the left menu. The two blocks covered here are "Dependency Scanning" and "Dependabot".

The Settings → Advanced Security page of a GitHub repository. Dependency graph and Dependabot alerts are On; Malware alerts, Dependabot security updates and Grouped security updates are Off
The settings page of one of our repositories before the change. Dependency graph and Dependabot alerts are On; everything else is Off.

In this state, alerts arrive but no fix pull requests are opened automatically. Section 3 shows the settings we recommend changing to.

3. What each item does and what to turn on

ItemWhat it doesRecommended
Dependency graphBuilds the list of packages and versions you use. Required for Dependabot alertsOn
Automatic dependency submissionDetects and records dependencies resolved at build time that lock files do not show. For select ecosystemsOnly if needed
Dependabot alertsAlerts you when you use a vulnerable versionOn
Malware alertsAlerts you when a malicious package, such as a hijacked or fake package, is among your dependenciesOn
Dependabot auto-triage rulesRules that automatically dismiss alerts or target them for pull requestsNone needed at first
Prevent direct alert dismissalsRequires a request to organization owners or security managers to dismiss an alertOff is fine for small teams
Dependabot security updatesAutomatically opens update pull requests for alerts with a fixOn
Grouped security updatesCombines those pull requests into one per package manager and directoryOn

The most effective item is Dependabot security updates. Alerts only tell you about a problem; nothing is fixed until someone investigates and updates. With pull requests opened automatically, all that is left is checking the tests and merging.

Malware alerts cover a different threat from vulnerabilities. Maintainer accounts being hijacked to publish versions with malicious code, and installing fake packages with similar names, have happened repeatedly on npm.

With Grouped security updates on, several alerts raised at the same time arrive as a single pull request, which cuts review time.

"Code Security" (code analysis with CodeQL and more) and "Secret Protection" (secret leak detection), higher up on the same page, are billed per active committer over the last 90 days for private and internal repositories. The Dependabot items have no extra cost, so start there.

4. Grouping version updates with dependabot.yml

The settings in section 3 cover updates when a vulnerability is found (security updates). To update outdated dependencies regularly even without a vulnerability, add .github/dependabot.yml to the repository and configure version updates.

version: 2
updates:
  - package-ecosystem: "npm"
    directory: "/"
    schedule:
      interval: "weekly"
    groups:
      npm-minor-and-patch:
        update-types: ["minor", "patch"]

  - package-ecosystem: "github-actions"
    directory: "/"
    schedule:
      interval: "monthly"

This example combines npm minor and patch updates into one weekly pull request, and updates GitHub Actions monthly. Major version updates often include breaking changes, so they stay out of the group and are reviewed in separate pull requests.

Turning on version updates without any grouping tends to bury you in one pull request per package. Splitting it into "merge vulnerability fixes right away, batch regular updates on a schedule" makes it easier to keep up.

5. What Dependabot cannot protect against

Dependabot only looks inside the repository. The following are out of scope and need to be managed another way.

Out of scopeExamplesHow to manage it
Software installed on serversnginx, PHP itself, OpenSSL, packages installed with dnfAWS Inspector, OS security updates, vendor announcements
Managed services and SaaSRDS, WordPress on KinstaProvider notices and reviewing your own settings
Code you wroteSQL injection, missing authorization checksCode review, code analysis such as CodeQL, security assessments
Vulnerabilities not yet disclosedBefore a CVE is publishedDefense in depth, such as a WAF

For example, the nginx vulnerabilities and the PHP security release of November 2026 affect server-side software, so Dependabot cannot detect them. Think of it as a split: Dependabot for application dependencies, Inspector and OS updates for servers.

6. Tips for day-to-day use

  • Commit lock files. Without them, Dependabot cannot see the versions you actually use.
  • Set up automated tests and CI. Without a way to tell whether merging will break anything, pull requests get left alone. Running builds and tests on every pull request speeds up the decision.
  • Handle vulnerability pull requests first. Look at the severity (Critical, High and so on) and whether you actually use the affected feature, and start with the highest priority.
  • Record why you dismiss an alert. Even when you decide not to act, for example because you do not use the affected feature, choosing a dismissal reason lets you trace the decision later.
FAQ

Frequently Asked Questions

QDoes Dependabot cost money?
A

Dependency graph, Dependabot alerts and Dependabot security updates are available at no extra cost, including for private repositories. Code Security and Secret Protection, on the same settings page, are billed per active committer over the last 90 days for private and internal repositories.

QAre Dependabot pull requests merged automatically?
A

No. Dependabot only opens a pull request that updates to the fixed version; a person decides whether to merge it. Automatic merging needs a separate setup, for example with GitHub Actions, and we do not recommend it until your tests are solid.

QWhat happens if lock files such as package-lock.json are not committed?
A

Dependabot reads versions from dependency files, so without a lock file it cannot see the exact versions you use, especially those of indirect dependencies. Keep lock files in the repository.

QCan it detect vulnerabilities in nginx or PHP installed on the server?
A

No. Dependabot only looks at dependency files in the repository. Manage the server's OS and middleware separately, with AWS Inspector, OS security updates and vendor announcements.

MOOBONISO/IEC 27001 CertificationAWS Partner Select Tier ServicesKinsta Agency Partner Badge
Copyright © 2026 MOOBON, Inc. All Rights Reserved.
Standard: ISO/IEC 27001:2022
Scope: Web system design support / Development, operation, and maintenance of in-house cloud services / Contract system development, operation, and maintenance / Server construction, operation, and maintenance