diff --git a/src/config-utils.test.ts b/src/config-utils.test.ts index 3ab4ca60a3..7971994396 100644 --- a/src/config-utils.test.ts +++ b/src/config-utils.test.ts @@ -2504,9 +2504,6 @@ test("no generateRegistries when CLI is too old", async (t) => { undefined, "'registries' input is not supported on CodeQL versions less than 2.10.4." ); - - // t.is(registriesAuthTokens, undefined); - // t.is(qlconfigFile, undefined); }); }); test("no generateRegistries when registries is undefined", async (t) => { diff --git a/src/init.ts b/src/init.ts index a50846d769..a2a9c1bf11 100644 --- a/src/init.ts +++ b/src/init.ts @@ -111,7 +111,8 @@ export async function runInit( try { if (await codeQlVersionAbove(codeql, CODEQL_VERSION_NEW_TRACING)) { - // Only create the qlconfig file if we haven't already created it. + // When parsing the codeql config in the CLI, we have not yet created the qlconfig file. + // So, create it now. // If we are parsing the config file in the Action, then we already created the qlconfig // file in `configUtils.generateRegistries`. let registriesAuthTokens: string | undefined;