Enable unsafe call rule

This commit is contained in:
Henry Mercer
2024-06-13 19:37:56 +01:00
parent d8f549d6d8
commit e7d04fdb41
27 changed files with 135 additions and 129 deletions

1
lib/upload-lib.js generated
View File

@@ -530,6 +530,7 @@ function handleProcessingResultForUnsuccessfulExecution(response, status, logger
if (status === "failed" &&
Array.isArray(response.data.errors) &&
response.data.errors.length === 1 &&
// eslint-disable-next-line @typescript-eslint/no-unsafe-call
response.data.errors[0].toString().startsWith("unsuccessful execution")) {
logger.debug("Successfully uploaded a SARIF file for the unsuccessful execution. Received expected " +
'"unsuccessful execution" processing error, and no other errors.');