feat(scan): per-target excluded paths, left out of the whole scan (#825)
CI / Check (push) Skipped
CI / Agent integration (push) Skipped
CI / Detect Changes (push) Successful in 5s
CI / Deploy Docs (push) Successful in 1m14s
CI / Deploy MCP (push) Successful in 2m53s
CI / Deploy Dashboard (push) Successful in 7m56s
CI / Deploy Agent (push) Successful in 10m50s

This commit was merged in pull request #825.
This commit is contained in:
sharang committed 2026-11-04 08:48:40 +00:00
1 parent e01d2146e9
commit 8ede373353
17 files changed
+596 -74

No files matched your search

+22 -1
View File
@@ -211,11 +211,32 @@ can:
- enter or change the password of a password-protected archive;
- upload another file under **Datei hinzufügen**: an archive (zip, tar, tar.gz),
a PLC project or a firmware image. It is uploaded at once and checked by the
next scan.
next scan;
- leave directories or files out of every scan under **Von der Prüfung
ausgenommen** (see below).
Click **Speichern** (Save) to keep the changes. Changes take effect with the next
scan.
### Leaving Paths out of the Scan
Under **Von der Prüfung ausgenommen**, enter one directory or file per line,
relative to the root of the repository or archive, for example `docs/samples`
or `tools/legacy.py`. A directory is left out with everything in it. Wildcards
are not supported, and a path must stay inside the tree (no leading `/`, no
`..`, not `.git`); at most 50 paths.
What is left out produces nothing: no code findings, no SBOM components and no
CVEs. The scan run lists it under **Ausgenommene Pfade**, together with any
path that was not found in the tree. Findings an earlier scan reported there
are closed with the reason that the path is now excluded, and so are their
issues. Test data (`fixtures`, `testdata` and similar) is left out
automatically; see [Scanning](/guide/scanning).
Through the API, send the list as `scan_config.exclude_paths` with
`PATCH /api/v1/targets/{id}`. It replaces the stored list; an invalid path is
refused with 422 and a message naming it.
## Connecting an Issue Tracker
New findings can be created as issues in GitHub, GitLab, Gitea or Jira. The
+4 -1
View File
@@ -29,7 +29,9 @@ names while the scan runs.
`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
`examples/` are scanned as usual.
`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)).
3. **Build the SBOM** (*SBOM erstellen*) -- the components from lockfiles
(Syft), plus libraries copied into a firmware tree (FreeRTOS, FreeRTOS+TCP,
lwIP, Mbed TLS, wolfSSL, FatFs), whose versions are read from their headers.
@@ -161,6 +163,7 @@ as a clean result: the CRA requirements it checks show as **Nicht geprüft**.
| **Git-Submodule** | Nicht ausgecheckt, daher nicht geprüft: *(names)* | Change SSH submodule URLs to HTTPS; see [Git Submodules](/guide/repositories#git-submodules). |
| **Herstellercode (HAL, CMSIS, Drittanbieter)** | Hersteller- und Fremdcode ohne Codeanalyse, in der Stückliste enthalten: *(directories)* | Nothing; for information. |
| **Testdaten (fixtures, testdata)** | Testdaten, von der ganzen Prüfung ausgenommen (Codeanalyse, Stückliste, CVEs): *(directories)* | Nothing; for information. Findings an earlier scan reported there are closed as test data. |
| **Ausgenommene Pfade** | In den Einstellungen des Prüfobjekts ausgenommen, von der ganzen Prüfung ausgenommen (Codeanalyse, Stückliste, CVEs): *(paths)* | Nothing; for information. Change the list under **Bearbeiten**. |
| e.g. **Statische Codeanalyse (Semgrep)**, **C/C++-Analyse (cppcheck)** | *(tool)* wurde nicht fertig; was es prüft, gilt als nicht bewertet. | Start the scan again; if it recurs, contact support. |
| **Abhängigkeiten (SBOM)** | *(manifest)* ohne Lockfile: Die Versionen der Abhängigkeiten und ihre CVEs sind nicht bekannt. | Commit the lockfile (see below). |
| e.g. **Firmware-Binäranalyse**, **Container-Analyse**, **Mobile-App-Analyse** | e.g. Firmware-Images werden noch nicht entpackt … | Nothing analyses these files yet; scan the source code instead. |