Skip to content

Include -1 in primary ID for find sec bugs and security code scan

What does this MR do?

While updating semgrep to use sast-rules as the SSoT, I noticed the primary identifers were not the same between semgrep and sast-rules.

In semgrep the find_sec_bugs and security_code_scan, the rules primary identifiers included a -1 for all singular rules. This was not the case in sast-rules.

For example

find_sec_bugs rule ID find_sec_bugs.HTTPONLY_COOKIE-1:

and in security_code_scan, the rule ID security_code_scan.SCS0001-1

The primary identifiers published in semgrep must be preserved so that vulnerability findings in the monolith are not lost and recreated.

This MR updates the deploy script to include the -1 for both find_sec_bugs and security_code_scan.

Related Issues?

Edited by Craig Smith

Merge request reports

Loading