Let’s Get Certified
Module 04 / 07 · Supply chain security

Trace a vulnerable package from inventory to release

Interpret a dependency graph and SBOM, review a proposed package change and decide how to verify remediation.

Connect release inventory to an advisory

The dependency graph draws on supported manifests, lockfiles and submitted build-time dependencies. A manifest can declare a range while a lockfile records a resolved version. A transitive package arrives through another package. To locate its owner, follow the path from the application through its direct dependency. An exported SPDX SBOM describes the inventory at a revision. Preserve its relationship to the built and deployed artifact.

Dependabot alerts match known advisories to the graph. Security updates can propose a fixed version for an alert. Version updates keep configured dependencies current on a schedule. Dependency review evaluates the change introduced by a pull request, including applicable vulnerabilities or license restrictions. Decide which check to require on the target branch. Group related updates where they can be tested and rolled back together.

When update automation cannot reach a private registry, verify its scoped registry access. Review advisory severity and EPSS together with runtime impact. Security integrations can notify an owning team through a webhook. Use its alert identifier to reconcile current state before opening another ticket. Audit auto-dismiss rules for scope and sample their decisions.

Set a release criterion

Suppose the team requires review of newly introduced high or critical vulnerabilities. Set the dependency review action’s fail-on-severity threshold to high and require its check on the target branch. A pull request that updates only documentation should have no new dependency finding. Use the default-branch alerts to investigate packages already present before that pull request.

Worked case 1

An SBOM lists an affected library, but the service owner remembers upgrading it. How could both observations be true?

Check your reasoning

Compare the inventory’s revision with the release currently deployed. Inspect the resolved graph for other parents that still require an affected version.

Worked case 2

An internal build resolves packages that the checked-in manifest does not describe. How can reviewers gain reliable visibility?

Check your reasoning

Submit dependency snapshots from the trusted build, verify the expected versions and relationships appear in the graph and tie the record to the correct revision.

Trace a package in a release inventory

Save the following as inventory.py and run python3 inventory.py. The abbreviated SPDX records contain synthetic packages. The advisory names one specific affected version. Predict which relationship leads to the match.

packages = {
    "SPDXRef-Store": ("store", "1.0"),
    "SPDXRef-Receipt": ("receipt", "2.3"),
    "SPDXRef-Format": ("format", "1.4"),
}
relationships = [
    ("SPDXRef-Store", "DEPENDS_ON", "SPDXRef-Receipt"),
    ("SPDXRef-Receipt", "DEPENDS_ON", "SPDXRef-Format"),
]
affected = {("format", "1.4")}
for parent, relation, child in relationships:
    if relation == "DEPENDS_ON" and packages[child] in affected:
        name, version = packages[child]
        print(f"{packages[parent][0]} depends on affected {name} {version}")
Check your output

Expected output: receipt depends on affected format 1.4. The store depends on format through receipt. Change format to version 1.5 and rerun. The empty result addresses this single advisory match. Establish which inventory belongs to the deployed release before closing its ticket.

GitHub dependency graph · Configure dependency review · GH-500 skills outline

Related lesson in GitHub Actions. Verify authority and provenance before deployment.

Practice with the recording

A pull request changes an indirect dependency that no developer remembers adding. How can the reviewer determine whether it belongs in the release?

Check your reasoning

Use the manifest or lockfile and dependency graph to identify its introducing package. Review the dependency change, advisory and license policy before merge. A current inventory and a pre-merge dependency check answer different questions.

Current GH-500 course · 1:08:02 · freeCodeCamp · GitHub Advanced Security course · 1:02:19

Apply the current exam objectives

Use an SBOM to share a point-in-time component inventory. For prioritization, compare advisory severity, EPSS likelihood, runtime exposure and whether a fixed version exists. A pre-merge dependency review can enforce a license or severity rule on a proposed change, while a campaign can coordinate fixes already in the default branch.

Exporting the software bill of materials · 54:42

Supply chain decisions

Compare a newly introduced package, an existing advisory and a grouped version-update pull request. Use the dependency graph or SBOM for inventory, Dependabot for eligible alerts and updates, and dependency review for changes at merge time. Verify the policy against an approved test dependency.

Knowledge check

Trace a vulnerable package from inventory to release quiz

Answer 3 questions. Check each answer for an explanation.

Worked example · Dependency evidence