You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,6 +3,7 @@
3
3
## [UNRELEASED]
4
4
5
5
- Add `working-directory` input to the `autobuild` action. [#1024](https://github.com/github/codeql-action/pull/1024)
6
+
- The `analyze` and `upload-sarif` actions will now wait up to 2 minutes for processing to complete after they have uploaded the results so they can report any processing errors that occurred. This behavior can be disabled by setting the `wait-for-processing` action input to `"false"`. [#1007](https://github.com/github/codeql-action/pull/1007)
Copy file name to clipboardExpand all lines: src/upload-lib.ts
+5-11Lines changed: 5 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -485,23 +485,17 @@ export async function waitForProcessing(
485
485
logger.info(`Analysis upload status is ${status}.`);
486
486
if(status==="complete"){
487
487
break;
488
+
}elseif(status==="pending"){
489
+
logger.debug("Analysis processing is still pending...");
488
490
}elseif(status==="failed"){
489
491
thrownewError(
490
492
`Code Scanning could not process the submitted SARIF file:\n${response.data.errors}`
491
493
);
492
494
}
493
495
}catch(e){
494
-
if(util.isHTTPError(e)){
495
-
switch(e.status){
496
-
case404:
497
-
logger.debug("Analysis is not found yet...");
498
-
break;// Note this breaks from the case statement, not the outer loop.
499
-
default:
500
-
throwe;
501
-
}
502
-
}else{
503
-
throwe;
504
-
}
496
+
logger.warning(
497
+
`An error occurred checking the status of the delivery. ${e} It should still be processed in the background, but errors that occur during processing may not be reported.`
0 commit comments