# How to add Static Application Security Testing (SAST) with SonarQube Cloud Free Tier to a GitLab CI/ CD pipeline

DevFeed: [How to add Static Application Security Testing (SAST) with SonarQube Cloud Free Tier to a GitLab CI/ CD pipeline](<https://devfeed.tech/articles/how-to-add-static-application-security-testing-sast-with-sonarqube-cloud-free-tier-to-a-gitlab-ci-cd-pipeline-87677.md>)

Original publisher: [Read original article](<https://www.tjmaher.com/2026/10/how-to-add-static-application-security.html>)

Author: T.J. Maher (noreply@blogger.com)

Published: 2026-10-15T03:30:55Z

Content type: tutorial

Language: en

Sources: [T.J. Maher](<https://devfeed.tech/sources/t-j-maher.md>)

Topics: [Application Security](<https://devfeed.tech/topics/application-security.md>), [GitLab](<https://devfeed.tech/topics/gitlab.md>), [snyk](<https://devfeed.tech/topics/snyk.md>), [Code review](<https://devfeed.tech/topics/code-review.md>)

Tags: [application-security](<https://devfeed.tech/tags/application-security.md>), [application-security-testing](<https://devfeed.tech/tags/application-security-testing.md>), [gitlab-ci](<https://devfeed.tech/tags/gitlab-ci.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [pipeline](<https://devfeed.tech/tags/pipeline.md>), [sast](<https://devfeed.tech/tags/sast.md>), [security](<https://devfeed.tech/tags/security.md>), [sonarqube-cloud](<https://devfeed.tech/tags/sonarqube-cloud.md>)

## AI overview

A practical walkthrough of adding SonarQube Cloud static application security testing to a GitLab CI/CD pipeline. It covers connecting a GitLab project, configuring scanner credentials and project properties, and running a non-blocking SAST job for merge requests and the default branch.

## Source excerpt

ESLint catches code quality issues. Typecheckers ensures variables and functions use the correct data types. Prettier automatically formats code for consistent style. But how can we start incorporating security testing into this GitLab CI/CD pipeline we have built? GitLab repo: https://gitlab.com/tjmaher/bun-create-playwright For this blog post we will be looking at one way to do Static Application Security Testing (SAST), adding SonarQube to our project. What is Static Application Security Testing? Static Application Security Testing (SAST) is a method of security testing that scans an application's source code, bytecode, and binaries for any security flaws. Because it analyzes the code without actually running the application -- meaning the code is "static" -- developers can use it early in the coding phase to catch and fix bugs immediately. Although source code scanners have been around a while in the computer industry, the term "Static Application Security Testing (SAST)" originated as a buzzword by Gartner, Inc. Gartner is known for their "Magic Quadrant" a visualization technique they use to map out industry leaders on a four part grid "Completeness of Vision" and "Ability to Execute" showing who are the market leaders, who are the challengers, who are the visionaries, and who are the niche players, as they put it. Joseph Feiman and Neil Macdonald published in 2009 their paper Magic Quadrant for Static Application Security Testing (See PDF). "As attacks become more financially motivated as organizations get better at securing their network, desktop and server infrastructures, there has been a shift in attacks to the application level. To address those new risks, several technology markets for application security have emerged, including static application security testing (SAST) "[...] This is the first Magic Quadrant for the SAST market. The SAST market leaders are smaller, innovative, security-focused vendors (Fortify Software and Ounce Labs) that provide st