Scan types
MODE
Choose a scan with MODE. The default is sast.
| MODE | Description |
|---|---|
| sast | Code scanning |
| secret | Secret scanning |
| iac | Infrastructure as code (IaC) scanning |
| all | Run SAST → Secret → IaC in order |
TIMEOUT
TIMEOUT sets the total time in seconds for setup, analysis, and result processing. For example, TIMEOUT=600 allows up to 10 minutes. Set the CI job timeout higher.
MODE |
Default timeout |
|---|---|
sast |
480 seconds (8 minutes) |
secret, iac |
450 seconds (7 minutes 30 seconds) |
all |
1380 seconds (23 minutes) |
Increasing TIMEOUT gives analysis more time. With MODE=all, XEIZE reserves time for result processing and later scanners. If a scan finishes early, later scans can use the remaining time.
If SAST times out and returns valid partial results, XEIZE reports them with an incomplete coverage warning. Those results cover only the part of the scan that finished.
LANG
LANG sets the language of SAST, Secret, and IaC findings and comments on pull requests (PRs) and merge requests (MRs).
The default is KO, including for unsupported values. XEIZE ignores case and surrounding whitespace.
| LANG | Comment language |
|---|---|
KO |
Korean |
EN |
English |
JP |
Japanese |
LEVEL
LEVEL sets the minimum severity that fails a CI job. Use lowercase, as in LEVEL=medium. With the default, none, findings alone do not fail the job.
SAST, Secret, and IaC fail the security job if an in-scope finding reaches the threshold. To block merges, make the job a required PR/MR check. To block a build or deployment after a branch push, make it depend on a successful security job.
MODE=all runs every scanner unless the run times out or is canceled. If any scanner finds a blocking issue, the job fails regardless of later results. warning uses the same threshold as high, and error as critical.
| LEVEL |
|---|
| none |
| any |
| info |
| low |
| medium |
| high |
| critical |
AUDIT LEVEL
AUDIT_LEVEL sets the minimum severity included in IaC results. With LEVEL=high and AUDIT_LEVEL=medium, IaC reports findings at medium or above. Findings at high or above fail the job.
| AUDIT_LEVEL |
|---|
| info |
| low |
| medium |
| high |
SCAN_SCOPE, BASE_BRANCH, and BASE_COMMIT
You can explicitly set the scan scope for SAST, Secret, IaC, and MODE=all. These options work in GitLab and GitHub push, manual, scheduled, tag, and PR/MR pipelines.
| Environment variable | Behavior |
|---|---|
SCAN_SCOPE=auto |
The default. Uses the pipeline's existing scan scope unless you specify a comparison base. |
SCAN_SCOPE=full |
Scans the entire current checkout and uses all valid findings at or above LEVEL to decide whether to block, including findings in unchanged files and lines. |
BASE_BRANCH=release |
Fetches origin/release and scans changes since its common ancestor with the current checkout. |
BASE_COMMIT=<full SHA> |
Compares the specified commit's file state directly with the current checkout. Replace the placeholder with the full SHA of a previously approved or deployed commit. |
SCAN_SCOPEignores case and surrounding whitespace.- For
BASE_BRANCH, enter the case-sensitive name of a branch onorigin, such asrelease/approved. - For
BASE_COMMIT, enter a full 40- or 64-character commit SHA. Short SHAs, tags, expressions such asHEAD~1, and all-zero values are invalid.
For a comparison, set either BASE_BRANCH or BASE_COMMIT. If a commit comparison needs a missing Git object, XEIZE fetches it with the repository’s credentials. It always uses the specified commit.
SCAN_SCOPE=full ignores both comparison settings and logs that choice. A full scan needs no comparison branch, pre-push commit, or complete Git history.
# Scan all current code even when main and develop are identical
GIT_PLATFORM=gitlab MODE=all SCAN_SCOPE=full LEVEL=medium ./xez_ci
# Scan changes since the common ancestor with the specified branch
GIT_PLATFORM=gitlab MODE=all BASE_BRANCH=release LEVEL=medium ./xez_ci
# Compare directly with a previously approved commit
GIT_PLATFORM=gitlab MODE=all BASE_COMMIT="$APPROVED_SHA" LEVEL=medium ./xez_ci
With an explicit scope, the CI job log shows the results and whether they block the job. Set XEIZE_TOKEN. This mode does not post or update PR/MR review comments, so it needs no comment token. It scans the actual checkout, including the merged code in a merged results pipeline.
Existing exclusions, suppressions, and analysis limits still apply to full scans. Secret full scans check files included in the current commit; they exclude untracked files and secrets present only in past commits. In IaC full scans, a higher AUDIT_LEVEL cannot exclude findings at or above an active LEVEL. You can still use it to include lower severities.
In branch and commit comparison modes, SAST and IaC use findings on added or modified lines in the selected comparison to decide whether to block. Secret also scans commits reachable from the current checkout but absent from the base branch or commit, so it can detect secrets added and then removed in intermediate commits. When there are no changes to compare, the current-file scan is skipped, but Secret history scanning may still run. Use SCAN_SCOPE=full when you need to scan all current code.
Push pipelines without a PR/MR
If SCAN_SCOPE=full, BASE_BRANCH, and BASE_COMMIT are unset, LEVEL still applies to GitHub branch push events and GitLab branch pipelines with CI_PIPELINE_SOURCE=push. An automated build or deployment can use this check without opening a PR/MR. Tag pushes, scheduled runs, and manual runs fall outside this default.
SAST and IaC use findings on lines added or modified by the push to decide whether to block. Existing findings on unchanged lines in the same file are excluded from that decision. Secret also checks commits introduced by the push, so a secret added in an intermediate commit can block the job even if removed in the final commit. Secrets reintroduced by a force push are also checked.
Regular and force pushes compare the commits before and after the push. A new branch is compared with its common ancestor with the default branch; the first push to the default branch is compared with an empty repository.
Push scans require XEIZE_TOKEN; a PR/MR comment token is unnecessary. Results appear in the job log. See the GitLab Workflow and GitHub Actions examples.
LOG_FINDINGS
Leave LOG_FINDINGS unset or set it to pretty, 1, or true to see the same detailed table of all in-scope findings. Each scanner reports its scope, the number of findings in that scope, and how many block the job at the configured LEVEL. Findings below the threshold stay visible. With LEVEL=none, the table lists all in-scope findings and the blocking count is zero.
For branch and commit comparisons, pushes, and pull or merge requests, SAST and IaC show findings that overlap changed lines. Secret counts findings in current changes and in the commits included in the comparison separately, so the history can include secrets removed before checkout. SCAN_SCOPE=full covers the entire current checkout and skips commit history.
Each entry shows the severity and rule ID, along with available locations, descriptions, and documentation links. SAST shows matched code and available sources, sinks, and call flows. IaC shows reported actual and expected values and the remediation suggestions from PR/MR comments.
Secret groups occurrences of the same value detected by the same rule. Each group shows its severity and locations in current files and commit history, with links when available. Values are masked as abc***xyz. Short or unavailable values appear as ***. Choose the table language with LANG=KO, EN, or JP, and disable colors with NO_COLOR=1.
LOG_FINDINGS=json writes JSON Lines filtered by LEVEL before the changed-line filter, so this output can include findings on unchanged lines. Set 0 or false to turn off finding output. All log formats use the same criteria to decide whether a job fails.