Documentation

Docs / Reference

ADR 0086 - Vulnerability scanning in CI

Status: Accepted (delegated review, 2026-11-25)

Context

Graphvein ships one Go binary with the web UI embedded. Before the public launch the developer decided (2026-11-24) that CI scans both dependency trees for known vulnerabilities: the Go modules and standard library linked into graphvein, and the npm packages of the web UI (web/), whose production dependencies are bundled into the embedded UI.

Constraints:

Options considered

  1. govulncheck source mode. Call-graph precision (reports only vulnerabilities whose symbols the code reaches). Not usable: it cannot load Go 1.27 sources yet.
  2. govulncheck binary mode on the built binary. Works with any Go version the binary was built with; reports a vulnerability when a vulnerable symbol is linked into the binary. Less precise than source mode (a linked symbol need not be reachable from Graphvein's code), but it scans exactly what ships.
  3. A third-party scanner (OSV-Scanner, Trivy, Snyk). One tool for both trees, but a new dependency or service, coarser module-level results for Go, and for Snyk an account.
  4. GitHub Dependabot alerts and dependency review. Free for public repositories and covers both ecosystems, but needs repository settings rather than code and does not gate a branch push the way a CI step does.
  5. npm audit for the web tree: built into the pinned npm, reads only web/package-lock.json, no install needed.

Decision

Options 2 and 5, in one script, scripts/vulncheck.sh (go, web, or both), run as two steps of CI's Linux postgres job:

Consequences

Known gaps

Review notes (2026-11-25)

Report a problem with this pageSource: docs/adr/0086-vulnerability-scanning.md