mirror of
https://github.com/github/codeql-action.git
synced 2026-05-07 14:20:19 +00:00
Dump SARIF API response
This commit is contained in:
Generated
+1
@@ -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
@@ -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}`
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user