Skip to content

Commit f8d3b8a

Browse files
Clarify wording for baseline commit (#2005)
1 parent 9bc2d06 commit f8d3b8a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/semgrep-ci/ci-environment-variables.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export SEMGREP_BASELINE_REF="main"
5454

5555
### `SEMGREP_BASELINE_COMMIT`
5656

57-
Set `SEMGREP_BASELINE_COMMIT` to a commit hash to only show results that are **not** found in that hash. Generally this is used to enable **[diff-aware scanning](/deployment/customize-ci-jobs#set-up-diff-aware-scans)** for CI providers that are **not** GitHub Actions or GitLab CI/CD.
57+
Set `SEMGREP_BASELINE_COMMIT` to a commit hash to use that hash as a baseline for the scan. This means the scan will only show findings that were **not** already present at that hash; any findings that were already present in that hash will not be reported. Generally this is used to enable **[diff-aware scanning](/deployment/customize-ci-jobs#set-up-diff-aware-scans)** for CI providers that are **not** GitHub Actions or GitLab CI/CD.
5858

5959
This environment variable doesn't work if you are not currently in a Git directory, there are unstaged changes, or the given baseline hash doesn't exist or is not available in the CI environment.
6060

0 commit comments

Comments
 (0)