review-comments: unwrap error in upload-sarif-action and re-classify as ConfigurationError if in known error category
This commit is contained in:
parent
efd29bef22
commit
498c7f37e8
6 changed files with 21 additions and 7 deletions
7
lib/status-report.js
generated
7
lib/status-report.js
generated
|
|
@ -35,6 +35,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.JobStatus = exports.ActionName = void 0;
|
||||
exports.isFirstPartyAnalysis = isFirstPartyAnalysis;
|
||||
exports.isThirdPartyAnalysis = isThirdPartyAnalysis;
|
||||
exports.getActionsStatus = getActionsStatus;
|
||||
exports.getJobStatusDisplayName = getJobStatusDisplayName;
|
||||
exports.createStatusReportBase = createStatusReportBase;
|
||||
|
|
@ -71,6 +72,12 @@ function isFirstPartyAnalysis(actionName) {
|
|||
}
|
||||
return process.env[environment_1.EnvVar.INIT_ACTION_HAS_RUN] === "true";
|
||||
}
|
||||
/**
|
||||
* @returns true if the analysis is considered to be third party.
|
||||
*/
|
||||
function isThirdPartyAnalysis(actionName) {
|
||||
return !isFirstPartyAnalysis(actionName);
|
||||
}
|
||||
/** Overall status of the entire job. String values match the Hydro schema. */
|
||||
var JobStatus;
|
||||
(function (JobStatus) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue