Skip to content

Dependency Audit Pipelines

This guide explains the scheduled dependency audit pipelines currently used to monitor package vulnerabilities in selected repositories.

It focuses on why the pipelines exist, what information they publish, how to read the Teams summary, and what action developers are expected to take.

These pipelines run on a schedule instead of on every pull request.

Their purpose is to:

  • detect known vulnerabilities in application dependencies
  • summarize the current risk level in a Teams message
  • publish the raw audit output as a pipeline artifact for deeper analysis
  • make follow-up work visible before the affected dependencies become part of a larger incident

The current implementations cover:

  • Portal using npm audit
  • KalmarEnergi API using dotnet list package --vulnerable

The pipelines follow the same broad pattern: run a dependency audit, send a Teams summary for quick awareness, and publish a detailed audit artifact for deeper analysis.

Use the Teams message as a quick triage view, not as the full report.

  • Severity counts help you decide what to review first. Start with critical and high findings.
  • Direct findings usually mean the repository depends on the vulnerable package explicitly. Transitive findings usually require upgrading something upstream.
  • Advisory grouping makes the message shorter, but the audit artifact is still the source of truth when you need exact package details.
  • Suggested fix versions are candidates, not automatic approvals. Review release notes and validate the change.
  • For npm findings, update the package directly when it is listed in package.json, or upgrade the dependency that brings the vulnerable package into the tree.
  • For NuGet findings, update the top-level package reference first when possible. For transitive findings, identify which direct package or shared library introduces the vulnerable version.
  • If the recommended fix is a major upgrade, plan the change instead of merging it blindly.
  • The pipelines only report known vulnerabilities that the audit tools can currently detect.
  • The Teams message is a summary, not a complete vulnerability inventory.
  • A suggested fix target is not the same as an approved production change.
  • Some advisories may appear across multiple packages or dependency paths.
  • A clean report does not prove the repository is free from all security issues.