Run Seqra static code analysis in your GitLab CI pipelines. Generates a SARIF report for code scanning integration or further processing.
Note: This template runs on Linux x86_64 environments and requires Docker-in-Docker.
include:
- remote: https://raw.githubusercontent.com/seqra/seqra-gitlab/refs/heads/main/seqra.gitlab-ci.yml
stages:
- analysis
seqra-job:
extends: .seqra-template
variables:
PROJECT_ROOT: "."include:
- remote: https://raw.githubusercontent.com/seqra/seqra-gitlab/refs/heads/main/seqra.gitlab-ci.yml
stages:
- analysis
seqra-job:
extends: .seqra-template
variables:
# Relative path to the root of the analyzed project
PROJECT_ROOT: "."
# Tag of seqra release
SEQRA_VERSION: "v2.0.2"
# Relative path to rules. If set RULES_REPOSITORY not used
RULES_PATH: ""
# Scan timeout
TIMEOUT: "15m"After the job completes, you’ll find:
seqra-job:archivein the job artifacts.- These can be consumed by other CI jobs or uploaded to a code scanning service.
- Monorepos: You can analyze only the project you need using
PROJECT_ROOT. - Timeouts: If the scan times out, increase
TIMEOUT(e.g.,30m).
See CHANGELOG.
This project is released under the MIT License.
The core analysis engine is source-available under the Functional Source License (FSL-1.1-ALv2), which converts to Apache 2.0 two years after each release. You can use Seqra for free, including for commercial use, except for competing products or services.