Skip to content
This repository was archived by the owner on Jul 30, 2026. It is now read-only.
This repository was archived by the owner on Jul 30, 2026. It is now read-only.

[10/48] CONFIG: Add wizcli_vulns delta-scan sparse-checkout branch for parity #64

Description

@anota-fernandocosta

Severity: High (parity defect — closes a gap visible only on wizcli_vulns)

Evidence

  • wizcli_secrets (api/config.yaml:573), wizcli_iac (api/config.yaml:647), and wizcli_sast (api/config.yaml:721) all branch on HUSKYCI_DELTA_SCAN=true + non-empty %CHANGED_FILES% and run git clone --no-checkout + git sparse-checkout add + git checkout -- per file.
  • wizcli_vulns at api/config.yaml:805 has no delta-scan branch and always performs a full clone, even when HUSKYCI_DELTA_SCAN=true and the client passed changedFiles.

Impact

A PR that changes only a handful of files still pays the full-clone + full-tree Wiz vulnerability scan cost on wizcli_vulns, even though every other WizCLI variant respects the delta path. This is the smallest, lowest-risk delta-related win available.

Recommendation

Port the existing sparse-checkout block from wizcli_iac / wizcli_sast into wizcli_vulns. Preserve the ERROR_SPARSE_CHECKOUT sentinel that analyze() in api/securitytest/securitytest.go matches on. Keep the ERROR_CLONING and ERROR_AUTH_WIZCLI / ERROR_RUNNING_WIZCLI_SCAN sentinels untouched.

Dependencies

Cross-references

Verifiable by: Static analysis; bash -n on the rewritten block; functional test with HUSKYCI_DELTA_SCAN=true and a 1-file changedFiles.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions