Skip to content

Fix incorrect reference to Remote Custom ruleset file

Vishwa Bhat requested to merge vbhat-fix-ruleset into main

What does this MR do?

Problem: When loading a remote Secrets Detection ruleset file, the current logic looks for .gitlab/sast-ruleset.toml file instead of .gitlab/secret-detection-ruleset.toml in the remote repository. This results in ignoring the remote custom ruleset file. More info on the issue is outlined here.

Fix: New logic looks for the appropriate file based on the analyzer in context.

What are the relevant issue numbers?

https://gitlab.com/gitlab-com/sec-sub-department/section-sec-request-for-help/-/issues/83

Does this MR meet the acceptance criteria?

Edited by Vishwa Bhat

Merge request reports

Loading