Delete uncached codeql.resolveLanguages() function call

This CLI command was cached, at one point, but that's been saved for another PR, so this change will too.
This commit is contained in:
Mario Campos
2026-07-13 22:37:29 -05:00
parent 8f1212fe5c
commit ec96b5271e
2 changed files with 5 additions and 5 deletions

5
lib/entry-points.js generated
View File

@@ -148891,7 +148891,9 @@ async function getSupportedLanguageMap(codeql, logger2) {
const resolveSupportedLanguagesUsingCli = await codeql.supportsFeature(
"builtinExtractorsSpecifyDefaultQueries" /* BuiltinExtractorsSpecifyDefaultQueries */
);
const resolveResult = await codeql.resolveLanguages();
const resolveResult = await codeql.resolveLanguages({
filterToLanguagesWithQueries: resolveSupportedLanguagesUsingCli
});
if (resolveSupportedLanguagesUsingCli) {
logger2.debug(
`The CodeQL CLI supports the following languages: ${Object.keys(resolveResult.extractors).join(", ")}`
@@ -160464,7 +160466,6 @@ async function run3(actionState) {
toolsSource = initCodeQLResult.toolsSource;
zstdAvailability = initCodeQLResult.zstdAvailability;
await codeql.getVersion();
await codeql.resolveLanguages();
await checkWorkflow(logger2, codeql);
if (
// Only enable the experimental features env variable for Rust analysis if the user has explicitly

View File

@@ -327,10 +327,9 @@ async function run(actionState: ActionState<["Logger", "Env", "Actions"]>) {
toolsSource = initCodeQLResult.toolsSource;
zstdAvailability = initCodeQLResult.zstdAvailability;
// Populate the in-memory command cache with CLI version and languages.
// These results will be persisted to disk at the end of the init action.
// Populate the in-memory command cache with CLI version.
// This result will be persisted to disk at the end of the init action.
await codeql.getVersion();
await codeql.resolveLanguages();
// Check the workflow for problems. If there are any problems, they are reported
// to the workflow log. No exceptions are thrown.