Softwr

Cybersecurity · head to head

Semgrep vs Trunk Code Quality

Semgrep logo

Semgrep

Cybersecurity

Open-source static analysis tool for finding security bugs and enforcing code standards.

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

  • Trunk Code Quality is free; Semgrep starts at $30/mo.
  • Only Semgrep lists secrets detection; only Trunk Code Quality lists version pinning through trunk.yaml.
  • Where Semgrep falls short: free tier caps out at 10 contributors and 10 repositories.
  • Where Trunk Code Quality falls short: private repositories with more than five active committers need a paid licence.

How do Semgrep and Trunk Code Quality differ?

Semgrep and Trunk Code Quality differ on platforms, category (Cybersecurity against Developer Tools) and year founded (2017 against 2021). Only the attributes on which Semgrep and Trunk Code Quality actually diverge.

Attributes where Semgrep and Trunk Code Quality differ
AttributeSemgrepTrunk Code Quality
PlatformsWeb, API, Linux, macOS, WindowsmacOS, Linux, Windows
CategoryCybersecurityDeveloper Tools
Founded20172021

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

Which features does each one have?

They share no listed features; 6 appear only for Semgrep 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 Semgrep

  • Static code scanning
  • Supply chain scanning
  • Secrets detection
  • Cross-file analysis
  • AI-powered triage and remediation
  • CI/CD integration

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?

Semgrep is most often brought in for scanning code for security vulnerabilities in CI/CD; Trunk Code Quality for running one lint command across a polyglot repository. The jobs each tool is most often brought in to do.

Semgrep

  • Scanning code for security vulnerabilities in CI/CDnot Trunk Code Quality
  • Detecting vulnerable open-source dependenciesnot Trunk Code Quality
  • Finding hardcoded secrets before code shipsnot Trunk Code Quality
  • Enforcing custom code standards with rule setsnot Trunk Code Quality
  • Prioritizing findings with AI-assisted triagenot Trunk Code Quality

Trunk Code Quality

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

Where do Semgrep and Trunk Code Quality fall short?

Semgrep's most cited limit: free tier caps out at 10 contributors and 10 repositories. 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.

Semgrep

  • Free tier caps out at 10 contributors and 10 repositories
  • Secrets scanning is priced as a separate module ($15/contributor) from Code and Supply Chain
  • Self-managed repositories and custom CI/CD require the Enterprise tier
  • AI credits are limited per tier and additional usage requires upgrading

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 Semgrep and Trunk Code Quality cost?

Semgrep has a free plan, with paid plans from $30/mo; Trunk Code Quality is free to use. Plan by plan below, from each vendor's own pricing page.

Semgrep

Free
  • FreeFree
    • Up to 10 contributors
    • Code and Supply Chain scanning
    • 60 AI credits total
  • Teams$30/mo
    • Code, Supply Chain, or Secrets scanning per contributor
    • Pro rules
    • AI-powered triage and remediation
  • EnterpriseOn request
    • On-prem support
    • Custom CI/CD
    • 50 AI credits per developer/month

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 Semgrep if

  • You need static code scanning.
  • You want to start without paying.
  • You work on Web, API, Linux, macOS, Windows.
  • You also want supply chain scanning.

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 Semgrep or Trunk Code Quality better?
It depends on the job. Semgrep fits scanning code for security vulnerabilities in CI/CD; Trunk Code Quality fits running one lint command across a polyglot repository. Semgrep starts at Free and Trunk Code Quality at Free.
Which is cheaper, Semgrep or Trunk Code Quality?
Semgrep starts at Free and Trunk Code Quality at Free.
Does Semgrep or Trunk Code Quality run on more platforms?
Semgrep runs on Web, API, Linux, macOS, Windows. Trunk Code Quality runs on macOS, Linux, Windows.
Can I use Semgrep for free?
Both have a free tier, so you can try either at no cost before committing.
What is Semgrep best used for?
Semgrep is most often used for scanning code for security vulnerabilities in ci/cd, detecting vulnerable open-source dependencies, finding hardcoded secrets before code ships, enforcing custom code standards with rule sets. Of those, scanning code for security vulnerabilities in ci/cd and detecting vulnerable open-source dependencies are not what Trunk Code Quality is typically brought in for.
What can Semgrep do that Trunk Code Quality cannot?
Semgrep covers Static code scanning, Supply chain scanning, Secrets detection, Cross-file analysis. 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

Semgrep: What does Semgrep cost?

The Free edition covers up to 10 contributors; Teams starts at $30/contributor/month for Code scanning (Supply Chain also $30, Secrets $15); Enterprise is custom-priced.

Source
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
Semgrep: Is there a free plan, and what are its limits?

Yes, the Free edition supports up to 10 contributors and 10 repositories with Code and Supply Chain scanning plus 60 AI credits total.

Source
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
Semgrep: How is usage metered?

Pricing is per contributor, defined as someone who made at least one commit to a scanned private repository in the past 90 days.

Source
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
Semgrep: Is there special pricing for startups?

Yes, Semgrep offers special startup pricing upon request for early-stage companies.

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