feat: PR delta scanning — API core, scanner cmds, client, ChangedFiles threading#24
Merged
Conversation
…aces in filenames
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Delta Scanning Implementation — API Side
Implements PR delta scanning: scanners clone only changed files instead of entire repository.
Changes (4 commits, 10 files, +573/-84)
Phase 1 — API Core (892f1de):
api/types/types.go: AddedChangedFilesfield toRepositoryapi/util/util.go: Added%CHANGED_FILES%placeholder toHandleCmdapi/kubernetes/huskykube.go: AddedgetScannerConfig(),isDeltaScanEnabled()api/kubernetes/api.go: ConditionalHUSKYCI_DELTA_SCAN=trueenv var on podsPhase 2 — Scanner Cmd Scripts (3df89db):
api/config.yaml: Sparse-checkout conditional for 7 delta-capable scanners (gitleaks, gosec, bandit, brakeman, wizcli_secrets/iac/sast)Phase 3 — Client Pipeline (ee7ae31):
client/config/config.go: ReadsHUSKYCI_CLIENT_CHANGED_FILESenv varclient/types/types.go: AddedChangedFilestoJSONPayloadclient/analysis/analysis.go: Sends ChangedFiles in request payloadPhase 3.5 — API Threading (b3beb25):
ChangedFilesfrom JSON → Repository → StartAnalysis → SecTestScanInfo → HandleCmdTests
handlecmd_delta_test.go(4),huskykube_test.go(8),analysis_test.go(2)Related
docs/superpowers/specs/2026-06-09-huskyci-delta-scanning-design.mddocs/plans/2026-06-09-delta-scanning-implementation.md