mirror of
https://github.com/github/codeql-action.git
synced 2026-10-03 17:41:28 +00:00
Include experimental languages
This commit is contained in:
@@ -17,6 +17,8 @@ import * as path from "node:path";
|
|||||||
|
|
||||||
import * as yaml from "yaml";
|
import * as yaml from "yaml";
|
||||||
|
|
||||||
|
import { EnvVar } from "../src/environment";
|
||||||
|
|
||||||
import { BUILTIN_LANGUAGES_FILE } from "./config";
|
import { BUILTIN_LANGUAGES_FILE } from "./config";
|
||||||
|
|
||||||
/** Resolve all known language extractor directories. */
|
/** Resolve all known language extractor directories. */
|
||||||
@@ -24,6 +26,10 @@ function resolveLanguages(codeqlPath: string): Record<string, string[]> {
|
|||||||
return JSON.parse(
|
return JSON.parse(
|
||||||
execFileSync(codeqlPath, ["resolve", "languages", "--format=json"], {
|
execFileSync(codeqlPath, ["resolve", "languages", "--format=json"], {
|
||||||
encoding: "utf8",
|
encoding: "utf8",
|
||||||
|
env: {
|
||||||
|
...process.env,
|
||||||
|
[EnvVar.EXPERIMENTAL_FEATURES]: "true", // include experimental languages
|
||||||
|
},
|
||||||
}),
|
}),
|
||||||
) as Record<string, string[]>;
|
) as Record<string, string[]>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user