Investigate 400 bad request comment of CUSTOM_SAST_RULES_BOT_PAT
It looks like the scripts to process semgrep results sometimes fail with {"message":"400 Bad request - Note {:line_code=>["can't be blank", "must be a valid line code"]}"}
. We need to investigate how this can happen, it looks like line = result["start"]["line"]
is nil at that line in the script when that happens, but I lack context to know how this can happen and how to best solve it. Further digging would need to be done.
Here are a few examples MR's in case it helps debugging:
Edited by Félix Veillette-Potvin