Skip to content

fix(image-scan): walk 16 levels for Dockerfiles, not 3 - #1138

Merged
sandstream merged 3 commits into
mainfrom
fix/dockerfile-discovery-depth
Nov 27, 2026
Merged

sandstream merged 3 commits into
mainfrom
fix/dockerfile-discovery-depth

Conversation

@sandstream

@sandstream sandstream commented Nov 27, 2026 •

Copy link
Copy Markdown
Owner

kit check reported "alpine apk floors did not finish" (a blocker) in repos with no Dockerfile at all. The Dockerfile walk stopped at depth 3, so an ordinary nested source tree (crates/x/src/bin, src-tauri/icons/AppIcon.icon/Assets) was reported as an incomplete inventory.

  • MAX_DEPTH 3 → 16, the same as the browser-script walk. MAX_ENTRIES (5,000) still bounds the cost.
  • New test: a nested source tree with a Dockerfile 4 levels down is found with no gap. The depth-limit test now uses a 16-level path. Both failed before the change.
  • A run against a real repo that had the false blocker (done in another session, not repeated here) showed skip: no apk add version floors.

🤖 Generated with Claude Code

sandstream and others added 2 commits November 27, 2026 13:46
At depth 3 an ordinary nested source tree was reported as an incomplete
Dockerfile inventory, so kit check showed 'alpine apk floors did not finish'
in repos with no Dockerfile at all. MAX_ENTRIES still bounds the walk.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kit-Hook-Tree: c2e65243b0c8795fd82bbe7b4f11439cdd2d7c2b
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kit-Hook-Tree: 49b33fe
@github-actions

Copy link
Copy Markdown

Docker image built, scanned, and smoke-tested in CI. The PR image is local to this run and is not published.

…el walk

The test placed it 4 levels down, which the deeper walk now reaches.
Ran all 27 test files that touch Dockerfile discovery: 307/307 pass.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Kit-Hook-Tree: 886e995
@github-actions

Copy link
Copy Markdown

Docker image built, scanned, and smoke-tested in CI. The PR image is local to this run and is not published.

@sandstream-kit-reviewer sandstream-kit-reviewer Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kit review gate at 30abd3cbd0ac: gates passed. All 33 checks passed on this commit, no file is in a protected class, 4 files and 41 lines changed. This approval is deterministic; it does not judge what the change is for.

@sandstream
sandstream merged commit f817086 into main Nov 27, 2026
33 checks passed
@sandstream
sandstream deleted the fix/dockerfile-discovery-depth branch November 27, 2026 13:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant