fleetlint Policy for a fleet of repositories
v0.11 (latest)
Getting started

deps/vulnerability-scan/cpp

Dependencies are scanned for known vulnerabilities

Implements deps/vulnerability-scan for cpp.

Severitywarning
Tiers1, 2
Stackscpp
Scopeeach
Kindoutcome
Sourcelibrary v0.8.0
Selected byfleetlint-recommended@v0.8.0

Requirement

Where a package manager (Conan, vcpkg) brings dependencies, a task-runner recipe or a CI step scans them: conan audit scan, or a stack-neutral scanner such as osv-scanner on conan.lock. Without a package manager the dependencies are vendored or system packages and this does not apply.

Why

A lockfile pins yesterday’s versions; only a scan says which of them are known to be exploitable today.

Applies when

file("conanfile.txt") || file("conanfile.py") || file("vcpkg.json")

Parameters

  • runners: [../Makefile ../justfile ../Justfile ../Taskfile.yml ../Taskfile.yaml ../../Makefile ../../justfile ../../Justfile ../../Taskfile.yml ../../Taskfile.yaml ../../../Makefile ../../../justfile ../../../Justfile ../../../Taskfile.yml ../../../Taskfile.yaml]
  • skip: ^\s*[@+-]*\s*(\{\{[^}]*\}\}\s*|\$[({][A-Za-z_]+[)}]\s*)?(#|//|echo\b|printf\b|(sudo\s+)?(go (install|get)|cargo b?install|pipx? install|pip3 install|python3? -m pip install|uv (tool |pip )?(install|add)|(npm|pnpm|yarn|bun) (i|install|add|global add)|gem install|bundle add|brew install|dotnet tool (install|update)|composer (global )?require|apt(-get)? install|curl|wget)\b[^;&]*$)

Fix

Run osv-scanner scan -L conan.lock (or conan audit scan .) in the audit target.

Agent instruction (from deps/vulnerability-scan): Add the stack’s vulnerability scanner to the audit target of the task runner; use osv-scanner against the lockfile when the stack has no native tool. Do not fix the findings in the same change; list them.

A finding that names no file points at the task runner’s file, or Makefile when there is none.

Sources


Generated by fleetlint docs from catalog v0.8.0.