Support diff-based scanning in report module
Summary
See MVC: Enable Diff-Based Scanning in MRs for Fast... (&17758 - closed) on how this issue fits in the whole plan.
Also read this thread for context on the changes needed here.
References
Main diff-based scanning epic: Faster Advanced SAST: Diff-based scanning in MRs (&16790 - closed)
MVC implementation epic: MVC: Enable Diff-Based Scanning in MRs for Fast... (&17758 - closed)
Implementation Plan
We're implementing an enum-based partial_scan_mode field that can for now be set to differential and in future incremental which will be implemented in future.
- Add the
partial_scan_modefield In the report module- Here's a reference commit that identifies where to add this field in the repo.
-
Update the
TransformToGLSASTReportcode in sarif.go to take in apartialScanparam and use it to create anewReportwhere theScan.SASTPartialScanis null(which indicates full scan) or set todifferential.- This will be used here in
gitlab-advanced-sastto configure the scan type on whether it is a full scan or partial differential scan
- This will be used here in
Edited by Shao Ming Tan