mirror of
https://github.com/github/codeql-action.git
synced 2026-01-01 12:10:20 +08:00
Trace Go when Go extraction reconciliation is enabled
This commit is contained in:
12
src/util.ts
12
src/util.ts
@@ -20,6 +20,7 @@ import {
|
||||
parsePacksSpecification,
|
||||
prettyPrintPack,
|
||||
} from "./config-utils";
|
||||
import { FeatureFlag, FeatureFlags } from "./feature-flags";
|
||||
import { Language } from "./languages";
|
||||
import { Logger } from "./logging";
|
||||
|
||||
@@ -817,3 +818,14 @@ export function listFolder(dir: string): string[] {
|
||||
}
|
||||
return files;
|
||||
}
|
||||
|
||||
export async function isGoExtractionReconciliationEnabled(
|
||||
featureFlags: FeatureFlags
|
||||
): Promise<boolean> {
|
||||
return (
|
||||
process.env["CODEQL_ACTION_RECONCILE_GO_EXTRACTION"] === "true" ||
|
||||
(await featureFlags.getValue(
|
||||
FeatureFlag.GolangExtractionReconciliationEnabled
|
||||
))
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user