mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 10:11:28 +00:00
Log if returning early from recordOverlayStatus due to no languages
This commit is contained in:
7
lib/entry-points.js
generated
7
lib/entry-points.js
generated
@@ -187034,7 +187034,12 @@ function isConclusiveJobStatus(jobStatus) {
|
||||
}
|
||||
}
|
||||
async function recordOverlayStatus(codeql, config, features, jobStatus, env, logger2) {
|
||||
if (config.overlayDatabaseMode !== "overlay-base" /* OverlayBase */ || env.getOptional("CODEQL_ACTION_ANALYZE_DID_COMPLETE_SUCCESSFULLY" /* ANALYZE_DID_COMPLETE_SUCCESSFULLY */) === "true" || !await features.getValue("overlay_analysis_status_save" /* OverlayAnalysisStatusSave */) || config.languages === void 0) {
|
||||
if (config.overlayDatabaseMode !== "overlay-base" /* OverlayBase */ || env.getOptional("CODEQL_ACTION_ANALYZE_DID_COMPLETE_SUCCESSFULLY" /* ANALYZE_DID_COMPLETE_SUCCESSFULLY */) === "true" || !await features.getValue("overlay_analysis_status_save" /* OverlayAnalysisStatusSave */)) {
|
||||
return;
|
||||
} else if (config.languages === void 0) {
|
||||
logger2.debug(
|
||||
"Not recording overlay status, because the configuration contains no 'languages'."
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (!isConclusiveJobStatus(jobStatus) && !didCodeQlReportError(env)) {
|
||||
|
||||
@@ -471,10 +471,14 @@ async function recordOverlayStatus(
|
||||
if (
|
||||
config.overlayDatabaseMode !== OverlayDatabaseMode.OverlayBase ||
|
||||
env.getOptional(EnvVar.ANALYZE_DID_COMPLETE_SUCCESSFULLY) === "true" ||
|
||||
!(await features.getValue(Feature.OverlayAnalysisStatusSave)) ||
|
||||
config.languages === undefined
|
||||
!(await features.getValue(Feature.OverlayAnalysisStatusSave))
|
||||
) {
|
||||
return;
|
||||
} else if (config.languages === undefined) {
|
||||
logger.debug(
|
||||
"Not recording overlay status, because the configuration contains no 'languages'.",
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
// Only record a failure when the job outcome tells us something about the analysis. A cancelled
|
||||
|
||||
Reference in New Issue
Block a user