ADR-004 — Open-Source Scanner for Dependency and Secret Checks

By Engineering & Architecture Team•October 12, 2026•4 min read

Status: Accepted Date: 2026-10-12 Authors: Engineering & Architecture Team

Context

BRD-004 requires automatic vulnerability and secret checks on every release at no licence cost. See SR-004.

Decision Drivers (FRs & NFRs)

  • BR-1.1 / SR-004 SR-F-01, SR-F-02, SR-F-05 — dependency and secret scans in every release run.
  • BR-2.1 / SR-004 SR-F-03, SR-F-04 — severity gate and reviewable output in the job log.
  • BR-1.2 / SR-004 SR-NF-01 — no licence cost.
  • BR-1.3 / SR-004 SR-NF-02 — portable CLI.
  • BR-2.2 / SR-004 SR-NF-03 — scan depth matched to a static site.

Decision — Which scanner

Pricing figures from the source comparison were not independently verified; check current vendor pricing before relying on them.

Option 1 — Snyk

Commercial SaaS with a proprietary vulnerability database, deep code analysis (SAST), automatic fix pull requests, IDE extensions and dashboards. The free tier is limited by monthly test count; private-repository team use is billed per active committer.

Pros:

  • Advanced code analysis (SAST) and remediation advice.
  • Native automatic fix pull requests.
  • Proprietary vulnerability research.

Cons:

  • Limited free tests, then a per-committer fee, which conflicts with the no-licence-cost requirement.
  • SaaS account dependency and vendor lock-in.

Option 2 — Trivy (aquasecurity/trivy-action) (CHOSEN)

Open-source (Apache-2.0) CLI that scans dependencies, secrets and configuration against public feeds, running on the CI runner.

Pros:

  • $0 licence cost: unlimited scans with no account or per-committer fee; only CI runner minutes are used.
  • Fit for scope: the site is static (output: 'static'), with no server code or runtime database, so dependency, secret and config scanning covers the realistic risk.
  • No vendor lock-in: a single CLI step that runs identically in GitHub Actions, another CI or a local terminal.
  • Fast and light: a local binary with no cloud round trip for analysis.

Cons:

  • No auto-remediation: findings are reported in logs and SARIF; version bumps are manual unless a separate dependency-update bot is added.
  • Shallower code analysis: no deep flow-based SAST. Accepted because there is no server-side code to analyse.
  • Public-feed data only: no proprietary vulnerability research, and possibly more noise from unfixed or non-reachable findings. Triage rules are needed (see SR-004 Open Items).
  • CI minutes are consumed, though small for this repository.

Final Decision

Use Trivy (Option 2). It meets the zero-licence-cost and portability requirements, and its scan depth matches a static site. Snyk was rejected for its licence cost and lock-in. The accepted cost is manual remediation and shallower code analysis.

Revisit when the site gains server-side rendering, dynamic APIs, or a team large enough to justify a paid security budget.