fix(scan): a Semgrep rule pack with its samples is test data (#905)
CI / Agent integration (push) Skipped
CI / Check (push) Skipped
CI / Detect Changes (push) Successful in 11s
CI / Deploy Dashboard (push) Skipped
CI / Deploy MCP (push) Skipped
CI / Deploy Agent (push) Canceled after 0s
CI / Deploy Docs (push) Successful in 1m13s

This commit was merged in pull request #905.
This commit is contained in:
sharang committed 2026-11-05 19:11:56 +00:00
1 parent 8d839ed5ad
commit b2b9fd2a02
2 files changed
+186 -8

No files matched your search

+4 -1
View File
@@ -28,7 +28,10 @@ names while the scan runs.
`fixtures`, `__fixtures__`, `testdata`, `test_data`, `test-data`,
`test-fixtures` or `test_fixtures` (at any depth) hold sample projects and
lockfiles that are not what the product ships, so they produce no code
findings, no SBOM components and no CVEs. `tests/`, `spec/` and
findings, no SBOM components and no CVEs. A Semgrep rule pack counts as
test data too, with everything below it: a directory that holds a rule
file `X.yaml` next to the sample it is tested on (`X.py`, `X.cs`), as
`semgrep --test` expects. `tests/`, `spec/` and
`examples/` are scanned as usual. Paths the target's settings exclude are
left out the same way (see
[Leaving Paths out of the Scan](/guide/repositories#leaving-paths-out-of-the-scan)).