Feature request: ocr scan support git submodule recursive scanning #1076
ThreeLeaves66
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Describe the feature request
Currently when running
ocr scanat root repository which contains git submodules, OCR does NOT recursively traverse code inside git‑submodule directories.Submodule folders are treated as opaque directories, source files inside submodules are ignored entirely in full‑repository scan.
Current workaround
We have to invoke
ocr scanrepeatedly for every submodule directory manually with--repo/--pathflag in CI pipeline.This brings extra scripting complexity:
.gitmodulesUse‑case
Monorepo / projects with git submodules, running full repository security/bug audit via
ocr scan.Many enterprise projects rely on git‑submodule to manage dependent components.
Expected behavior
Add submodule‑aware support for
ocr scan:--include‑submodules, when enabled, read.gitmodulesand recursively scan each checked‑out submodule together in one single scan session, produce one unified final report.Additional context
ocr scan(full‑scan mode, not ocr review diff mode)Would like to know whether submodule‑aware scanning is in the consideration roadmap.
All reactions