Compare commits

...

2 Commits

Author SHA1 Message Date
Henry Mercer e108d85bfa Dump SARIF API response 2022-11-28 19:58:40 +00:00
Henry Mercer 48414bd300 Add testing trigger 2022-11-28 18:57:26 +00:00
4 changed files with 5 additions and 1 deletions
+2
View File
@@ -10,6 +10,8 @@ env:
on:
push:
branches:
# testing
- henrymercer/report-failed-runs-testing
- main
- releases/v1
- releases/v2
+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}`
);