SAST tools › GitLab SAST
GitLab SAST: what Free runs, and what needs Ultimate
GitLab SAST is on every tier. Add one include to .gitlab-ci.yml and open-source analyzers, led by Semgrep with GitLab-managed rules, scan each pipeline and save a JSON report. Seeing new findings in the merge request, cross-file Advanced SAST, rule changes and vulnerability management all need Ultimate, which GitLab prices by quote. Premium, at $29 a user a month, adds nothing to SAST.
What each GitLab tier gets from SAST scanning
From GitLab's SAST documentation, which lists Free and Premium together because they get the same thing:
| Feature | Free and Premium | Ultimate |
|---|---|---|
| Basic scanning with open-source analyzers | Yes | Yes |
| Downloadable SAST JSON report | Yes | Yes |
| New findings in the merge request widget | No | Yes |
| New findings on changed lines in the merge request | No | Yes |
| Cross-file, cross-function scanning (Advanced SAST) | No | Yes |
| Vulnerability management and report | No | Yes |
| Ruleset customization | No | Yes |
| Set up from the UI | No | Yes |
| GitLab Duo false-positive detection | No | With the Duo add-on |
| Agentic fixes for high and critical findings | No | Yes |
In practice, on Free and Premium SAST is a pipeline job that produces a JSON report. The merge request shows none of it, so a reviewer won't see a new SQL injection unless someone opens the report. On Ultimate the same scan shows up in the merge request widget, beside the changed lines and in a vulnerability report for the default branch.
Turning it on
Anyone with the Developer role or higher can add SAST by editing the CI file. In the pipeline editor, add:
include:
- template: Jobs/SAST.gitlab-ci.yml
or the CI/CD component gitlab.com/components/sast/sast@main. The pipeline must keep a test stage, and the job needs a Linux runner with the Docker or Kubernetes executor on AMD64; Windows runners aren't supported. GitLab's hosted runners already qualify, and it recommends at least 4 GB of RAM for the analyzers.
Two defaults to know. SAST runs in branch pipelines, not merge request pipelines, unless you configure it to. And each analyzer runs only when the project has files in a language it supports.
Which analyzers run
GitLab's analyzer list on every tier:
- semgrep, the Semgrep open-source engine with GitLab-managed rules. It replaced most of GitLab's older per-language analyzers, which have reached end of support.
- spotbugs with the Find Sec Bugs plugin, for Java built with Maven, Gradle, Ant, Grails or SBT.
- pmd-apex for Salesforce Apex, sobelow for Elixir, and kubesec for Kubernetes manifests (off by default).
- malicious-sources, which flags references to known malicious domains.
Ultimate adds GitLab Advanced SAST, a cross-file, cross-function taint analysis for C#, C and C++ (with a compilation database), Go, Java, JavaScript and TypeScript, PHP, Python and Ruby, with Dart, Kotlin, Objective-C, Rust, Scala and Swift in beta. When it's on, the Semgrep analyzer stops scanning some languages; GitLab says the two engines don't have full parity, as each finds things the other misses.
What it costs, against adding a scanner
GitLab's pricing page lists Free for up to 5 users per top-level group, Premium at $29 a user a month billed annually with $12 of GitLab Credits per user, and Ultimate by quote with $24 of credits. If Ultimate's quote is out of reach, an outside scanner on Premium is the usual alternative:
| Setup | 5 developers | 25 developers | What you get beyond basic SAST |
|---|---|---|---|
| GitLab Free | $0 | Not possible | Nothing; Free stops at 5 users per group |
| GitLab Ultimate | Quote | Quote | Everything in the tier table, plus DAST and dependency scanning |
| Premium + Semgrep | $145 + $0 | $725 + $750 | Cross-file Pro rules; Semgrep is free up to 10 contributors, then $30 each for Code |
| Premium + SonarQube Cloud | $145 + $34 | $725 + priced by lines | Security and code quality; $34 covers up to 100,000 lines |
| Premium + Snyk | $145 + $125 | $725 + credits | SAST with dependency, container and IaC scanning |
Aikido, Checkmarx One, Corgea and ZeroPath also connect to GitLab; the main comparison prices all ten. GitHub's CodeQL and IonWarp are GitHub only and won't scan a GitLab project.
Questions
Is GitLab SAST free?
Yes. Basic scanning with open-source analyzers and a downloadable JSON report run on Free, Premium and Ultimate. Findings in merge requests, Advanced SAST and ruleset customization need Ultimate.
Does GitLab SAST use Semgrep?
Yes. Its main analyzer runs the open-source Semgrep engine with rules GitLab maintains, and it replaced most of GitLab's older per-language analyzers. GitLab Advanced SAST, on Ultimate, is GitLab's own cross-file engine.
Does GitLab Premium include SAST?
Only the same basic scanning as Free. GitLab's feature table puts Free and Premium in one column; every SAST feature beyond the scan and its JSON report is Ultimate.
About this page
Published by Winding AI, Inc., the company that makes IonWarp, an AI pull-request reviewer for GitHub that does not work with GitLab. We earn nothing from links to other tools. Facts come from GitLab's documentation and pricing page and each vendor's pricing page on the date above. Visits are counted with Google Analytics. Corrections: support@winding.ai.