MSBA-369 · Lesson 5 of 12 · 21 min
Domain review: supply chain security
▶ Video coming soon A video version of this lesson is on the way.
Wilhelmus Moravec-Oduro, Skerry's release engineering lead, joined the fifth session with a coffee and a complaint. "Everyone calls this Dependabot," he said, "and then gets the question wrong because they mean a different Dependabot." He wrote three words on the whiteboard: alerts, security updates, version updates. "Three features, one name. Half of this domain is knowing which one a question means."
The domain Configure and use supply chain security (formerly Dependabot/Dependency Review) carries 15 to 20 percent of the exam. It was taught across six lessons of GitHub Advanced Security: Secret Protection and Supply Chain Security: Dependency graph, Dependabot alerts, Dependabot security and version updates, Dependency review, Software bill of materials and Prioritizing alerts. The outline asks you to enable and configure the dependency graph and Dependabot, interpret and act on alerts, use auto-triage and prioritization signals, use dependency review including licence checks, and export an SBOM. Seraphine's baseline showed this as one of her two weakest domains, almost entirely because of look-alike errors.
The dependency graph
Every supply chain feature starts from the dependency graph, a record of the packages a repository depends on, built from manifest and lock files such as package.json and package-lock.json, requirements files, pom.xml and go.mod. It shows direct dependencies and, where a lock file or a submission provides them, transitive dependencies. It is free, enabled automatically for public repositories, and enabled for private repositories by an administrator or a security configuration.
Static parsing of files cannot see everything. Some ecosystems resolve dependencies only at build time. For those, automatic dependency submission runs a build-time detection in GitHub Actions and submits what it finds, and the dependency submission API lets any build system submit a snapshot. Skerry found 70 Python repositories with no lock files, which meant their graphs showed only direct dependencies; adding lock files was a supply chain fix that cost nothing.
Three Dependabots
| Feature | What triggers it | What it produces | Configured by |
|---|---|---|---|
| Dependabot alerts | A reviewed advisory matches a dependency in the graph | An alert on the Security tab | Enable in settings or a security configuration |
| Dependabot security updates | An open alert with a fixed version available | A pull request that upgrades to the minimum fixed version | Enable in settings; dependabot.yml optional for grouping and options |
| Dependabot version updates | A schedule | Pull requests that move dependencies to newer versions | A dependabot.yml file in the repository |
The decisive differences are short enough to memorize. Alerts tell you; they change nothing. Security updates fix known vulnerabilities and need no configuration file. Version updates keep things current whether or not there is a vulnerability, and they need a dependabot.yml file. Security updates also need alerts to be on, because they act on alerts. A question that asks for pull requests only for vulnerable dependencies wants security updates; a question about a weekly schedule wants version updates.
# .github/dependabot.yml
version: 2
updates:
- package-ecosystem: "npm"
directory: "/"
schedule:
interval: "weekly"
groups:
web-tooling:
patterns: ["eslint*", "prettier"]
cooldown:
default-days: 7
open-pull-requests-limit: 5
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"Read the listing the way the exam would. package-ecosystem, directory and schedule are required for each entry. groups combine several updates into one pull request. cooldown delays version updates until a release has been out for a number of days, which reduces exposure to a freshly published malicious version; since July 2026 version updates have a default cooldown of three days, and security updates are not delayed. open-pull-requests-limit caps open version update pull requests. ignore entries, not shown, skip dependencies or versions. Grouping can also apply to security updates through the applies-to key, which Skerry used to cut noise in its monorepos.
Interpreting and prioritizing alerts
A Dependabot alert shows the package, the vulnerable version range, the fixed version if one exists, the advisory with its GHSA and CVE identifiers, a severity based on CVSS, and since 2025 an EPSS score: the Exploit Prediction Scoring System's estimate of the probability that the vulnerability will be exploited in the next 30 days. It also shows whether the dependency is direct or transitive, and whether it is a development or runtime dependency where the ecosystem says so.
Severity and EPSS answer different questions. Severity asks how bad it would be; EPSS asks how likely it is to happen. A critical vulnerability with a tiny EPSS score in a development-only test tool is less urgent than a high vulnerability with a high EPSS score in a public web service. The exam likes questions that give you both numbers and ask which alert to handle first.
Auto-triage rules reduce the queue automatically. GitHub-curated presets, such as dismissing low-impact alerts for npm development dependencies, are available for free. Custom auto-triage rules let you dismiss, snooze or open security update pull requests for alerts matching criteria such as severity, scope, package name, CWE or EPSS; on private repositories they need Code Security. Skerry's rules cut 9,460 open alerts to 3,140 that needed a human, and flagged 214 with high exploit likelihood for the first week's work.
Worked problem
Which alert first?
Four alerts in Skerry's checkout service: (A) critical, EPSS very low, development dependency in a test runner; (B) high, EPSS high, runtime dependency, fixed version available; (C) moderate, EPSS moderate, runtime, no fixed version; (D) low, EPSS low, runtime, fixed version available. In what order should they be handled?
Show solution
- B first: high severity, likely exploitation, runtime code, and a fix exists.
- C next: runtime and moderate, but no fix, so it needs a decision about mitigation or a workaround.
- A after that: critical on paper, but development only and unlikely to be exploited; an auto-triage rule might dismiss it.
- D last: low on both axes, and a security update can take care of it.
Answer: B, C, A, D: combine severity with exploit likelihood, runtime exposure and fix availability.
Dismissing a Dependabot alert requires a reason: a fix has already started, no bandwidth to fix, risk is tolerable, vulnerable code is not actually used, or inaccurate. Closed alerts that have been closed for two years or more are archived from September 2026, which matters only for reporting.
Dependency review
Dependency review shows the dependency changes in a pull request: added, removed and updated packages, with any known vulnerabilities and their licences. The dependency review action turns that view into a check that can fail the pull request, which a ruleset can make required. It is free on public repositories and needs Code Security on private ones. Its options include the minimum severity that fails the check, which dependency scopes to check, licences to allow or deny, advisories to allow and whether to comment a summary on the pull request.
name: Dependency review
on: [pull_request]
permissions:
contents: read
jobs:
review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/dependency-review-action@v4
with:
fail-on-severity: high
deny-licenses: GPL-3.0, AGPL-3.0
comment-summary-in-pr: on-failureTwo exam distinctions sit here. First, dependency review acts before merge, on the change; Dependabot alerts act after, on what is already in the default branch. A question about stopping a vulnerable package from entering the codebase wants dependency review. Second, licence checks belong to dependency review, not to Dependabot. Skerry made the action required through an organization ruleset for confidential and restricted repositories, ran it in warn-only mode for two weeks, and caught 23 pull requests in the first month.
SBOMs and malware alerts
A software bill of materials lists the components of a piece of software. GitHub can export a repository's dependency graph as an SBOM in SPDX format, from the dependency graph page or through the REST API, by anyone with read access. SPDX is an ISO standard; the other major format, CycloneDX, is produced by build tools rather than by GitHub's export. When Skerry's European wholesale customer asked for SBOMs, Wilhelmus generated CycloneDX files in the build because the customer wanted build-accurate content, and kept the SPDX export for quick inventories. On the exam, the GitHub export answer is SPDX.
Malware alerts are a newer Dependabot feature, expanded in August 2026 to eight ecosystems, that alert when a dependency matches a known malicious package from the OpenSSF malicious packages feed. They are opt-in and came after the outline date, so recognize them without expecting detailed questions. Skerry's first malware alert was a false positive caused by an internal package sharing a public name, which led to an alert rule for its private package names.
Worked problem
Reading a requirement
A question says: "Your team wants new pull requests in a private repository to fail if they introduce a dependency with a high severity vulnerability or a licence your legal team has banned. You must use GitHub features only." What is needed?
Show solution
- Before-merge checking of dependency changes is dependency review.
- Failing the pull request needs the dependency review action in a workflow, made required by a ruleset or branch protection.
- Licence enforcement is an option of the dependency review action.
- On a private repository, dependency review needs Code Security.
Answer: Code Security, the dependency review action with fail-on-severity and a licence list, and a ruleset that requires the check.
By the end of the session Seraphine had rewritten her error log entry from the baseline. Under "cause" she wrote: "I knew all three; I read too fast." Under "fix" she wrote: "When I see Dependabot, ask: tell, fix or refresh?"
Enabling at scale and keeping alerts accurate
For a single repository, the dependency graph, Dependabot alerts and security updates are switched on in the repository's settings. For many repositories, a security configuration carries all three, and the organization's global settings hold related choices such as whether Dependabot runs on self-hosted runners and which private registries it can use. Dependabot needs credentials to reach private registries; those are stored as Dependabot secrets or as organization-level private registry configurations, separate from Actions secrets. A version updates job that fails with an authentication error against an internal registry points to this.
Alert accuracy depends on graph accuracy. If a repository uses an ecosystem that GitHub cannot parse statically, or builds dependencies that are not declared in any manifest, the graph is incomplete and alerts will be missing. The three remedies, in order of preference, are adding lock files, enabling automatic dependency submission for supported ecosystems, and using the dependency submission API from the build. When a question says a known vulnerable package is not producing an alert, check first whether it appears in the dependency graph at all.
| Symptom | Likely cause | Remedy |
|---|---|---|
| No alert for a transitive dependency | No lock file, so only direct dependencies are known | Commit a lock file or submit a build snapshot |
| Security update pull request never appears | No fixed version, or the update fails to resolve | Check the alert for a patched version and the Dependabot job logs |
| Version updates fail against an internal registry | Missing registry credentials | Add a Dependabot secret or organization private registry |
| Too many alerts for test tooling | Development dependencies included | Use an auto-triage preset or custom rule |
Dependabot pull requests can also be managed by comment. Commands such as asking Dependabot to rebase or recreate a pull request, or to ignore a major version, save time in busy repositories, and they are worth recognizing in a question even if you rarely use them. Auto-merging Dependabot pull requests is possible with a workflow that reads Dependabot's metadata and enables auto-merge for patch updates; Skerry allows it for web repositories with good test coverage and forbids it in the store systems organization, where every change needs a human.
Wilhelmus closed the session with the supply chain version of Freya's rule about secrets. "Alerts are about what you already have. Dependency review is about what you are about to add. Cooldown and malware alerts are about what you should not trust yet. If a question tells you when something happens, it is telling you which feature to pick."
Common mistakes
MistakeChoosing version updates when only vulnerable dependencies should get pull requests.
InsteadSecurity updates fix known vulnerabilities; version updates refresh on a schedule.
MistakeThinking security updates need a dependabot.yml file.
InsteadSecurity updates need alerts enabled; the file is optional for options such as grouping.
MistakeTreating CVSS severity as the only priority signal.
InsteadCombine severity with EPSS, runtime exposure and whether a fix exists.
MistakeLooking for licence checks in Dependabot.
InsteadLicence allow and deny lists are dependency review options.
MistakeAnswering CycloneDX for GitHub's SBOM export.
InsteadGitHub exports the dependency graph as SPDX.
Summary and key terms
- Supply chain security is 15 to 20 percent and starts from the dependency graph.
- Alerts tell, security updates fix, version updates refresh; only version updates need dependabot.yml.
- Prioritize with severity, EPSS, runtime exposure and fix availability; auto-triage rules shrink the queue.
- Dependency review checks dependency changes before merge, including licences; it needs Code Security on private repositories.
- GitHub exports SBOMs in SPDX format from the dependency graph.
- Cooldown delays version updates, not security updates; malware alerts arrived after the outline date.
- Dependency graph
- GitHub's record of a repository's dependencies, built from manifests, lock files and submissions.
- Dependabot security updates
- Pull requests that upgrade a vulnerable dependency to the minimum fixed version.
- Dependabot version updates
- Scheduled pull requests that keep dependencies current, configured in dependabot.yml.
- EPSS
- Exploit Prediction Scoring System: the estimated probability of exploitation in the next 30 days.
- Auto-triage rule
- A rule that dismisses, snoozes or acts on Dependabot alerts that match criteria.
- Dependency review
- A pull request view and action that reports and can block risky dependency changes.
- SPDX
- An ISO standard SBOM format and the format of GitHub's dependency graph export.
Practice problems
Work each problem on paper first, then reveal the answer to check.
Which Dependabot feature needs a configuration file?
Show answer
Version updates.
Which feature can block a pull request that adds a banned licence?
Show answer
Dependency review, through the dependency review action.
What does EPSS estimate?
Show answer
The probability that a vulnerability will be exploited in the next 30 days.
Lesson quiz · 5 questions
Score 60% or more to complete this lesson.
Create a free account to save your progress, take quizzes and earn a certificate.