Only fall back when tools not overridden

This commit is contained in:
Henry Mercer
2024-08-13 14:12:17 +01:00
parent d277fb19ed
commit 6ece038d8b
3 changed files with 3 additions and 3 deletions

2
lib/codeql.js generated
View File

@@ -107,7 +107,7 @@ exports.CODEQL_VERSION_SUBLANGUAGE_FILE_COVERAGE = "2.15.0";
const CODEQL_VERSION_INCLUDE_QUERY_HELP = "2.15.2";
async function setupCodeQLBundlePreferringZstd(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, features, logger) {
let zstdError = undefined;
if (await features.getValue(feature_flags_1.Feature.ZstdBundle)) {
if (!toolsInput && (await features.getValue(feature_flags_1.Feature.ZstdBundle))) {
try {
return await setupCodeql.setupCodeQLBundle(toolsInput, apiDetails, tempDir, variant, defaultCliVersion, true, logger);
}