Add more invalid SARIF processing errors

This commit is contained in:
Henry Mercer 2024-05-08 13:36:10 +01:00
parent 45fb58ab31
commit b1c3187939
3 changed files with 5 additions and 1 deletions

View file

@ -775,6 +775,8 @@ function shouldConsiderInvalidRequest(processingErrors: string[]): boolean {
return processingErrors.every(
(error) =>
error.startsWith("rejecting SARIF") ||
error.startsWith("an invalid URI was provided as a SARIF location") ||
error.startsWith("locationFromSarifResult: expected artifact location") ||
error.startsWith(
"could not convert rules: invalid security severity value, is not a number",
) ||