Support diff-based scanning in security-report-schema
Summary
Update the security report schemas to support a new optional partial_scan_mode enum field with the value differential for GLAS diff-based scans.
- Since not all analyzers support partial scan modes, this field should be optional. Reports that don't include it can be assumed to have a
nullvalue. - When incremental scanning is introduced, a new enum value of
incrementalcan be added.
See MVC: Enable Diff-Based Scanning in MRs for Fast... (&17758 - closed) for how this issue fits into the overall 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
- Add the
partial_scan_modefield to thesecurity report schema- Field should be of type enum
- It should be optional
- Support
differentialas an enum value
Edited by Shao Ming Tan