Softwr

Cybersecurity · head to head

Trivy vs Trunk Code Quality

Trivy logo

Trivy

Cybersecurity

Open-source vulnerability and misconfiguration scanner

From
Free
Free plan
Yes
Trunk Code Quality logo

Trunk Code Quality

Developer Tools

Metalinter that runs and manages linters, formatters and security scanners

From
Free
Free plan
Yes

The short version

  • Both are free.
  • Only Trivy lists vulnerability detection; only Trunk Code Quality lists version pinning through trunk.yaml.
  • Where Trivy falls short: reports what public advisory databases know, so coverage varies by ecosystem and unfixed CVEs create noise.
  • Where Trunk Code Quality falls short: private repositories with more than five active committers need a paid licence.

How do Trivy and Trunk Code Quality differ?

Trivy and Trunk Code Quality differ on pricing model, platforms and category (Cybersecurity against Developer Tools). Only the attributes on which Trivy and Trunk Code Quality actually diverge.

Attributes where Trivy and Trunk Code Quality differ
AttributeTrivyTrunk Code Quality
Pricing modelOpen source, no licence feeFreemium
PlatformsLinux, macOS, Windows, Self-hostedmacOS, Linux, Windows
CategoryCybersecurityDeveloper Tools

Identical on both: starting price (Free), free tier (Yes).

Not yet recorded: founded for Trivy.

Which features does each one have?

They share no listed features; 4 appear only for Trivy and 8 only for Trunk Code Quality. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in Trivy

  • Multi-target scanning
  • Vulnerability detection
  • Misconfiguration checks
  • Secret detection

Only in Trunk Code Quality

  • Installs and runs over 100 linters and formatters
  • Version pinning through trunk.yaml
  • Hold the Line checks on new changes only
  • Background daemon that precomputes results
  • VS Code and Neovim editor integration
  • GitHub integration for pull request checks
  • Security scanning tools such as trivy and gitleaks
  • Runs in any CI environment

What is each one used for?

Trivy is most often brought in for failing a pull request when a container image introduces a known CVE; Trunk Code Quality for running one lint command across a polyglot repository. The jobs each tool is most often brought in to do.

Trivy

  • Failing a pull request when a container image introduces a known CVEnot Trunk Code Quality
  • Scanning Terraform and Kubernetes manifests for misconfiguration before applynot Trunk Code Quality
  • Catching committed secrets as part of an existing CI stepnot Trunk Code Quality

Trunk Code Quality

  • Running one lint command across a polyglot repositorynot Trivy
  • Gradually fixing legacy code with Hold the Linenot Trivy
  • Pinning linter versions across a teamnot Trivy
  • Enforcing the same checks locally and in CInot Trivy
  • Adding security scanners to pull requestsnot Trivy

Where do Trivy and Trunk Code Quality fall short?

Trivy's most cited limit: reports what public advisory databases know, so coverage varies by ecosystem and unfixed CVEs create noise. Trunk Code Quality's: private repositories with more than five active committers need a paid licence. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

Trivy

  • Reports what public advisory databases know, so coverage varies by ecosystem and unfixed CVEs create noise
  • No built-in triage or exception workflow, so suppressing accepted risk is managed in config files
  • Findings are point-in-time from CI, with no continuous runtime monitoring unless you add the commercial platform

Trunk Code Quality

  • Private repositories with more than five active committers need a paid licence
  • Paid Team and Enterprise prices are not published; quotes come from sales
  • Core CLI is closed source, with only plugins and the GitHub Action under MIT
  • Results depend on the underlying linters, so rule coverage is not Trunk's own

How much do Trivy and Trunk Code Quality cost?

Trivy is free to use; Trunk Code Quality is free to use. Plan by plan below, from each vendor's own pricing page.

Trivy

Free
  • TrivyFree
    • Full scanner
    • Unlimited scans
    • Community support

Trunk Code Quality

Free
  • Free (up to 5 active committers on private repos)Free
  • Team (per seat)On request
  • Enterprise (annual site licence)On request

Which should you pick?

Choose Trivy if

  • You need multi-target scanning.
  • You want to start without paying.
  • You work on Linux, macOS, Windows, Self-hosted.
  • You also want vulnerability detection.

Choose Trunk Code Quality if

  • You need installs and runs over 100 linters and formatters.
  • You want to start without paying.
  • You work on macOS, Linux, Windows.
  • You also want version pinning through trunk.yaml.

Questions people ask

Is Trivy or Trunk Code Quality better?
It depends on the job. Trivy fits failing a pull request when a container image introduces a known CVE; Trunk Code Quality fits running one lint command across a polyglot repository. Trivy starts at Free and Trunk Code Quality at Free.
Which is cheaper, Trivy or Trunk Code Quality?
Trivy starts at Free and Trunk Code Quality at Free.
Does Trivy or Trunk Code Quality run on more platforms?
Trivy runs on Linux, macOS, Windows, Self-hosted. Trunk Code Quality runs on macOS, Linux, Windows.
Can I use Trivy for free?
Both have a free tier, so you can try either at no cost before committing.
What is Trivy best used for?
Trivy is most often used for failing a pull request when a container image introduces a known cve, scanning terraform and kubernetes manifests for misconfiguration before apply, catching committed secrets as part of an existing ci step. Of those, failing a pull request when a container image introduces a known cve and scanning terraform and kubernetes manifests for misconfiguration before apply are not what Trunk Code Quality is typically brought in for.
What can Trivy do that Trunk Code Quality cannot?
Trivy covers Multi-target scanning, Vulnerability detection, Misconfiguration checks, Secret detection. Trunk Code Quality covers Installs and runs over 100 linters and formatters, Version pinning through trunk.yaml, Hold the Line checks on new changes only, Background daemon that precomputes results.

Answered from the vendors’ own pages

Trivy: Is Trivy free?

Yes, open source from Aqua Security with no licence fee. Aqua sells a commercial platform around it.

Trunk Code Quality: What does Trunk Code Quality do?

It is a metalinter that installs, pins and runs third party linters, formatters and security scanners from one CLI. A background daemon precomputes results for editor annotations.

Source
Trivy: What can Trivy scan?

Container images, filesystems, Git repositories, Kubernetes clusters and infrastructure-as-code, for vulnerabilities, misconfigurations, secrets and licences.

Trunk Code Quality: Is Trunk Code Quality free?

Public and open source repositories have no stated usage limit, and private repositories with five or fewer active committers can use the CLI at no cost. Larger private teams need a paid licence.

Source
Trivy: Does Trivy need a server?

No. It is a single binary, which is a large part of why it became a default in CI.

Trunk Code Quality: Which operating systems are supported?

The launcher supports macOS and Linux. Windows is supported from CLI version 1.13.0, using git-bash, msys2 or a PowerShell launcher.

Source
Trunk Code Quality: How many linters does it support?

The supported linters page claims over 100 linters and formatters. They cover many languages plus infrastructure, security, SQL and Markdown tooling.

Source
Share

Related pages

Other head to heads