Add the CliConfigFileEnabled feature flag

Also, wire it up to the `useCodeScanningConfigInCli` function.
This commit is contained in:
Andrew Eisenberg 2022-09-26 19:56:42 -07:00
parent 314ede696b
commit e37b0d6470
27 changed files with 236 additions and 40 deletions

View file

@ -213,7 +213,8 @@ export async function runQueries(
threadsFlag: string,
automationDetailsId: string | undefined,
config: configUtils.Config,
logger: Logger
logger: Logger,
featureFlags: FeatureFlags
): Promise<QueriesStatusReport> {
const statusReport: QueriesStatusReport = {};
@ -256,7 +257,7 @@ export async function runQueries(
}
try {
if (await util.useCodeScanningConfigInCli(codeql)) {
if (await util.useCodeScanningConfigInCli(codeql, featureFlags)) {
// If we are using the codescanning config in the CLI,
// much of the work needed to generate the query suites
// is done in the CLI. We just need to make a single