Fix frozen array bug for path-based SD exclusions
What does this MR do and why?
This merge request fixes a minor issue with response.results
array being frozen during Secret Push Protection scanning, which breaks path-based SD exclusions. The fix ensures path-based exclusions are handled properly both when using old scanning mechanism (i.e. entire file is scanned) and when using diff scanning.
MR acceptance checklist
I have evaluated this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Ahmed Hemdan