mirror of
https://github.com/github/codeql-action.git
synced 2026-10-21 10:11:28 +00:00
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:
5
lib/entry-points.js
generated
5
lib/entry-points.js
generated
@@ -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
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user