mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 09:37:15 +00:00
Warn when multiple bundles for a single CLI are found in the toolcache
This commit is contained in:
@@ -459,11 +459,17 @@ export async function getCodeQLSource(
|
||||
"toolcache, using that."
|
||||
);
|
||||
codeqlFolder = toolcache.find("CodeQL", candidateVersions[0]);
|
||||
} else {
|
||||
} else if (candidateVersions.length === 0) {
|
||||
logger.debug(
|
||||
`Did not find exactly one version of the CodeQL tools starting with ${cliVersion} ` +
|
||||
`(instead found ${candidateVersions.length}). Trying next fallback method.`
|
||||
`Didn't find any versions of the CodeQL tools starting with ${cliVersion} ` +
|
||||
`in the toolcache. Trying next fallback method.`
|
||||
);
|
||||
} else {
|
||||
logger.warning(
|
||||
`Found ${candidateVersions.length} versions of the CodeQL tools starting with ` +
|
||||
`${cliVersion} in the toolcache, but at most one was expected.`
|
||||
);
|
||||
logger.debug("Trying next fallback method.");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user