mirror of
https://github.com/github/codeql-action.git
synced 2026-11-09 06:29:52 +00:00
Add debug-level log messages when checks are skipped
This commit is contained in:
15
lib/entry-points.js
generated
15
lib/entry-points.js
generated
@@ -193980,19 +193980,34 @@ async function checkRunnerSupportsTracedAnalysis(action, config, codeql) {
|
||||
const version = darwinVersion(action);
|
||||
await checkSwiftCompatibility(config, codeql, version);
|
||||
if (!await action.features.getValue("check_unsupported_traced_analysis" /* CheckUnsupportedTracedAnalysis */)) {
|
||||
action.logger.debug(
|
||||
"Skipping traced analysis compatibility checks because the feature is not enabled."
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (isSelfHostedRunner(action.env)) {
|
||||
action.logger.debug(
|
||||
"Skipping traced analysis compatibility checks because we are on a self-hosted runner."
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (config.buildMode !== void 0 && config.buildMode === "none") {
|
||||
action.logger.debug(
|
||||
"Skipping traced analysis compatibility checks because the build mode is 'none'."
|
||||
);
|
||||
return;
|
||||
}
|
||||
if (version === void 0) {
|
||||
action.logger.debug(
|
||||
"Skipping traced analysis compatibility checks because we are not on macOS."
|
||||
);
|
||||
return;
|
||||
}
|
||||
const tracedLanguages = await hasTracedLanguages(config, codeql);
|
||||
if (tracedLanguages.length === 0) {
|
||||
action.logger.debug(
|
||||
"Skipping traced analysis compatibility checks because no traced languages are being analyzed."
|
||||
);
|
||||
return;
|
||||
}
|
||||
const skipUnsupportedTracedAnalysis = await action.features.getValue(
|
||||
|
||||
Reference in New Issue
Block a user