Firmware repositories pull their HAL, RTOS or protocol stack in as
submodules. They were never fetched, so a scan of such a repository
missed code the product ships and did not say so.
- Submodules are checked out after the clone or fetch, recursively up to
three levels, for the scan and for classification.
- Each URL (relative ones resolved as git does) must pass the same checks
as the main remote: HTTPS only, a public host, no redirects. The URL
that was checked is written to the local config, so it is the one
fetched.
- The repository's token is offered only to the main remote's host; a
submodule elsewhere is fetched anonymously.
- A submodule that is refused or fails is left out and recorded: a
`git_submodules` skipped stage on the scan run (with a German label in
the dashboard) and a `submodule_skipped` fact at ingest.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p