Skip to main content
Security is the highest-weighted domain on the exam, accounting for 25–30% of the scope.
A slide showing that Security is the highest-weighted exam domain, making up 25–30% of your exam score, illustrated by a green "Security" bar.
To master this domain, treat GitHub Advanced Security (GHAS) not as a checklist of features, but as a layered defense strategy. Each layer targets a different attack surface and vulnerability class — similar to how a hospital uses different infection-control measures for distinct risks.

The layers explained

Below is a concise breakdown of each layer, its role, and the GitHub feature that implements it.

Layer 1 — Dependabot alerts

Dependabot alerts scan your dependency manifests and notify you when packages have known vulnerabilities, helping you prioritize remediation for third‑party code.
A slide titled "Layer 1 – Dependabot Alerts" showing a blue "Dependabot alerts" badge equated to a "Supplier audit" box. Below are package icons labeled express 4.17.1, axios 0.21.1, and lodash 4.17.15, implying dependency alerts.

Layer 2 — Dependabot security updates

When a reachable vulnerability is found, Dependabot can open a pull request that upgrades the vulnerable package to a patched version. This automates remediation and reduces mean time to repair.
A presentation slide titled "Layer 2 – Dependabot Security Updates." It shows Dependabot opening a pull request to upgrade axios from version 0.21.1 (warning) to 1.6.8 (fixed) and labels Dependabot as "The pharmacist."

Layer 3 — Secret scanning

Secret scanning detects sensitive data (API keys, credentials) in your commits and alerts you so the secret can be revoked or rotated quickly — preventing accidental leaks.
A slide titled "Layer 3 – Secret Scanning" comparing "Secret scanning" to a "Security camera." A simple diagram shows a camera mounted above a box while a red key lies outside it.

Layer 4 — Push protection

Push protection integrates with secret scanning to block commits or pushes that would expose secrets (when configured). It acts as an automated gate to stop problems before they reach your history.
A presentation slide titled "Layer 4 – Push Protection" showing a green "Push protection" badge equated with the phrase "The door that locks itself." Below is a graphic of a locked green door with a key left outside and a security camera watching it.

Deep code analysis — CodeQL

CodeQL performs deep static analysis of your repository to find logic errors, insecure patterns, and other issues that dependency scanners cannot detect because they focus on code you wrote rather than third‑party libraries. The critical insight: Dependabot protects against vulnerable dependencies (third‑party code), while CodeQL analyzes your own source code (developer-written logic). These are complementary protections.
A diagram titled "Running Only One Layer" that compares three cases: Runs only Dependabot, Runs only CodeQL, and Runs both layers. Each panel shows whether dependencies or own code are checked or blind, with the combined option labeled "Complete coverage."
Running only one of these layers leaves blind spots:
  • Dependabot only → misses vulnerable application logic in your code.
  • CodeQL only → misses vulnerable third‑party libraries.
  • Both together → much stronger, more complete coverage.

Billing and cost control for GHAS

GitHub Advanced Security can affect cost management for organizations. Understand how billing works so you can optimize spend without sacrificing coverage.
A slide titled "Archiving Drops Committers" showing an archived box icon (with lock/shield), a billing count of 0, and a 90-day green progress bar. There's also a green pill button labeled "A measurable cost lever."
Key billing points to remember for the exam and for cost optimization:
  • GitHub Advanced Security is free for public repositories.
  • Billing is based on active committers in GHAS-enabled private repositories: any user who has made at least one commit to a GHAS-enabled private repository within the trailing 90 days counts toward billing.
  • Commits to public repositories do not count toward GHAS billing.
  • Archiving a GHAS-enabled private repository removes its committers from the billing count after 90 days — a measurable cost lever for cleanup and lifecycle management.

Quick study checklist (for exam and practice)

  • Understand the different attack surfaces: third‑party dependencies vs. your own source code.
  • Know which GHAS feature maps to which layer (Dependabot alerts, Dependabot updates, Secret scanning, Push protection, CodeQL).
  • Remember GHAS billing rules for private repositories and the 90‑day archival effect.
  • Practice configuring Dependabot, enabling secret scanning/push protection, and running CodeQL workflows.
This layered approach — Dependabot alerts and updates, secret scanning and push protection, plus CodeQL — combined with mindful repository lifecycle management, provides robust security coverage and predictable cost control.

Watch Video