Dependency and Code Scanning: Triage the Evidence
Three different signals
Dependabot alerts concern known vulnerabilities associated with dependencies in the supported dependency graph. Code scanning analyzes code for possible weaknesses or errors. Secret scanning identifies potential exposed credentials. Their scope and availability differ. An alert is evidence to investigate; an empty dashboard is not proof of safety.
Trace the dependency
The fictional leaf-format library has an alert for exact version 1.0.0; the mock advisory names 1.0.1 as the fix. Inspect the resolved lockfile, direct or transitive origin, affected feature and release provenance. Real advisory ranges can be more complicated; do not use lexical string comparison for real versions.
{ "kind": "dependency", "package": "leaf-format", "installed": "1.0.0", "affected": "1.0.0", "fixed": "1.0.1"}Remediate and verify
Review a proposed dependency update, update the manifest and lockfile through the appropriate package manager, test behavior and verify the resolved version. For code findings, inspect the reported path and underlying data flow, fix the cause and run the scan again. For secret findings prioritize revocation. Assign an owner and track open risks; a dismissal needs documented justification.
Recognize coverage gaps
Unsupported languages, missing dependency manifests, incomplete analysis and disabled security tools leave blind spots. A scanner may report false positives or miss real issues. Combine review, testing, dependency controls and incident monitoring. Verify plan, repository and tool coverage before relying on a feature.
Practice
The offline fixture distinguishes dependency, code and secret alerts. Compare old and fixed mock lockfile versions, then classify an unknown alert as requiring manual triage rather than silently closing it. No scanner or real vulnerable package is installed or executed.
Check Your Understanding
Solidify your learning with the interactive assessment directly below this lesson.
Concept Quiz & Questions
Dependency and Code Scanning: Triage the Evidence — knowledge check
Reason about repository trust, security controls and incident response.
Which tool addresses known dependency vulnerabilities?
Which tool identifies potential weaknesses in source?
A dependency alert names an old version. What next?
What should follow a dependency fix?
What if alert type is unknown?