Dump SARIF API response

This commit is contained in:
Henry Mercer
2022-11-28 19:58:40 +00:00
parent 48414bd300
commit e108d85bfa
3 changed files with 3 additions and 1 deletions
+1
View File
@@ -305,6 +305,7 @@ async function waitForProcessing(repositoryNwo, sarifID, logger) {
logger.debug("Analysis processing is still pending...");
}
else if (status === "failed") {
logger.info(JSON.stringify(response.data));
throw new Error(`Code Scanning could not process the submitted SARIF file:\n${response.data.errors}`);
}
await util.delay(STATUS_CHECK_FREQUENCY_MILLISECONDS);
File diff suppressed because one or more lines are too long
+1
View File
@@ -432,6 +432,7 @@ export async function waitForProcessing(
} else if (status === "pending") {
logger.debug("Analysis processing is still pending...");
} else if (status === "failed") {
logger.info(JSON.stringify(response.data));
throw new Error(
`Code Scanning could not process the submitted SARIF file:\n${response.data.errors}`
);