fleetlint Policy for a fleet of repositories
v0.4
Getting started

ci/sast

Code is scanned by a SAST tool

Severityinfo
Tiers1
Stacksany
Scoperoot
Kindoutcome
Sourcelibrary v0.1.0
Selected byfleetlint-recommended@v0.1.0

Requirement

A static application security test runs in CI or the task runner: CodeQL (github/codeql-action), Semgrep or Opengrep, the GitLab SAST template or component, or SonarQube. Linters with security rules count under the lint rules, not here. CodeQL default setup, which leaves no file in the repository, and other scanners are declared with accept:.

Why

SAST follows data from input to dangerous sinks across files, which per-file linters do not; on GitHub CodeQL is free for public repositories.

Fix

Add a CodeQL workflow (GitHub advanced setup), include the GitLab SAST component, or add a Semgrep step to CI; with CodeQL default setup, declare it with accept:.

Agent instruction: Add a CodeQL workflow (github/codeql-action init/analyze, pinned) for the repository’s languages, or on GitLab include components/sast; run it on pull requests and weekly.

See: https://fleetlint.org/baseline/#security


Generated by fleetlint docs from catalog v0.1.0.