Skip to content

Update logic to add pre-receive secret detection feature

What does this MR do and why?

This MR modifies the logic adding "pre-receive secret detection" to the list of scan options.

Why: This was causing an issue where pre-receive is treated as a new scanner option, which is not the case. This was reported to be shown in an alert on the vulnerability report page.

How: We now add the pre-receive feature as a fake scan only where it's needed, ie on the configuration page.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

No changes to how it's rendered on security configuration page

image.png

Prevents rendering on other pages

Before After
image image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

Edited by Dheeraj Joshi

Merge request reports

Loading