Skip to main content
In this lesson we’ll enable Dependabot at the enterprise level and walk through how GitHub Advanced Security (GHAS) detects dependency vulnerabilities and recommends fixes. I’m signed in as an Enterprise admin and navigate from Enterprise settings → Advanced Security to configure Dependabot and related dependency settings.
A screenshot of a GitHub Enterprise "NextGen Gaming" Settings page showing the GitHub Advanced Security dashboard. It displays protection metrics (Dependabot 100%, Code Security 0%, Secret Protection 100%) and configuration options for security policies.
Enable the Dependency Graph and configure Dependabot
  • I scrolled to the dependency settings and found the Dependency graph disabled — I enabled it.
  • For automatic dependency updates I temporarily disabled automatic dependency submission, but I enabled Dependabot alerts.
  • For Security updates I set it to Not set so repository owners can decide whether to enable or disable them.
  • I enabled direct alert dismissal and enabled alerts for detected malware.
  • After saving, the changes were applied across multiple repositories (this example updated three repositories).
Open the repository-level Advanced Security page (inside the Game Dev Studio org) and refresh to confirm the enterprise settings are applied — repository settings cannot override these Enterprise-level controls.
Enterprise-level dependency settings (Dependency graph, Dependabot alerts, etc.) are enforced for repositories under that enterprise. Repository owners can view but not override those enforced settings.
How GHAS tests your repositories
  • With the Dependency graph enabled, GHAS scans common manifest files and resolves the dependency tree for supported ecosystems.
  • It identifies known advisories (CVE-based or ecosystem advisories), surfaces severity labels, and links to remediation guidance.
Supported manifest examples Example package.json from the demo repository
Dependency graph: inspect resolved packages and severities
  • The Dependency graph view lists resolved packages from your manifests and flags known vulnerabilities with severity badges.
  • Click any package to view package details, the affected versions, and links to advisories.
A screenshot of a GitHub repository's "Dependency graph" page. It lists npm dependencies like mongoose, lodash, chai and shows vulnerability severity badges and sidebar navigation.
Dependabot alerts: consolidated vulnerability list
  • To see all alerts for the repository, go to Security and analysis → Dependabot alerts.
  • Use filters by CVE, manifest, ecosystem, severity, and status to triage alerts quickly.
  • Each alert includes the advisory, affected ranges, severity, and remediation guidance.
A screenshot of a GitHub repository's "Security and quality" > "Dependabot alerts" page showing a list of dependency vulnerabilities (lodash, mongoose, etc.) with severity tags like Critical, High, and Moderate. The left sidebar shows security tools (Dependabot, code scanning, secret scanning) and the main pane lists open alerts and a severity filter dropdown.
Example: remediation recommendation
  • Advisories typically recommend upgrading to a non-vulnerable version or version range. For example, an advisory might suggest updating mongoose to a secure major/minor version.
  • The package update in your manifest could look like this:
Always prefer the version or range shown in the specific advisory. After updating dependencies, run your tests and CI pipelines to verify the upgrade doesn’t break functionality.
Automating remediation with Dependabot
  • Dependabot can create pull requests that update the impacted dependency to the recommended secure version or range.
  • Review the Dependabot PR, run CI, and perform any necessary code validation before merging.
  • Use branch protection rules and required status checks to enforce verification before merging automated dependency updates.
Next steps and references This workflow helps you detect, triage, and remediate dependency vulnerabilities across repositories while enforcing enterprise policies and automating safe upgrades where appropriate.

Watch Video