Add logging statements declaring state of the cli_config_file_enabled
It's possible to determine this otherwise, but this makes it easier to spot.
This commit is contained in:
parent
4cf80047d0
commit
6ace05baa3
6 changed files with 30 additions and 2 deletions
6
lib/analyze.js
generated
6
lib/analyze.js
generated
|
|
@ -136,6 +136,12 @@ async function runQueries(sarifFolder, memoryFlag, addSnippetsFlag, threadsFlag,
|
||||||
config.paths, config.pathsIgnore, config.languages, logger);
|
config.paths, config.pathsIgnore, config.languages, logger);
|
||||||
}
|
}
|
||||||
const codeql = await (0, codeql_1.getCodeQL)(config.codeQLCmd);
|
const codeql = await (0, codeql_1.getCodeQL)(config.codeQLCmd);
|
||||||
|
if (await util.useCodeScanningConfigInCli(codeql, featureFlags)) {
|
||||||
|
logger.info("Code Scanning configuration file being processed in the codeql-action.");
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
logger.info("Code Scanning configuration file being processed in the codeql CLI.");
|
||||||
|
}
|
||||||
for (const language of config.languages) {
|
for (const language of config.languages) {
|
||||||
const queries = config.queries[language];
|
const queries = config.queries[language];
|
||||||
const queryFilters = validateQueryFilters(config.originalUserInput["query-filters"]);
|
const queryFilters = validateQueryFilters(config.originalUserInput["query-filters"]);
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
4
lib/config-utils.js
generated
4
lib/config-utils.js
generated
|
|
@ -909,9 +909,13 @@ async function initConfig(languagesInput, queriesInput, packsInput, registriesIn
|
||||||
// happen in the CLI during the `database init` command, so no need
|
// happen in the CLI during the `database init` command, so no need
|
||||||
// to download them here.
|
// to download them here.
|
||||||
if (!(await (0, util_1.useCodeScanningConfigInCli)(codeQL, featureFlags))) {
|
if (!(await (0, util_1.useCodeScanningConfigInCli)(codeQL, featureFlags))) {
|
||||||
|
logger.info("Code Scanning configuration file being processed in the codeql CLI.");
|
||||||
const registries = parseRegistries(registriesInput);
|
const registries = parseRegistries(registriesInput);
|
||||||
await downloadPacks(codeQL, config.languages, config.packs, registries, apiDetails, config.tempDir, logger);
|
await downloadPacks(codeQL, config.languages, config.packs, registries, apiDetails, config.tempDir, logger);
|
||||||
}
|
}
|
||||||
|
else {
|
||||||
|
logger.info("Code Scanning configuration file being processed in the codeql-action.");
|
||||||
|
}
|
||||||
// Save the config so we can easily access it again in the future
|
// Save the config so we can easily access it again in the future
|
||||||
await saveConfig(config, logger);
|
await saveConfig(config, logger);
|
||||||
return config;
|
return config;
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -239,6 +239,17 @@ export async function runQueries(
|
||||||
}
|
}
|
||||||
|
|
||||||
const codeql = await getCodeQL(config.codeQLCmd);
|
const codeql = await getCodeQL(config.codeQLCmd);
|
||||||
|
|
||||||
|
if (await util.useCodeScanningConfigInCli(codeql, featureFlags)) {
|
||||||
|
logger.info(
|
||||||
|
"Code Scanning configuration file being processed in the codeql-action."
|
||||||
|
);
|
||||||
|
} else {
|
||||||
|
logger.info(
|
||||||
|
"Code Scanning configuration file being processed in the codeql CLI."
|
||||||
|
);
|
||||||
|
}
|
||||||
|
|
||||||
for (const language of config.languages) {
|
for (const language of config.languages) {
|
||||||
const queries = config.queries[language];
|
const queries = config.queries[language];
|
||||||
const queryFilters = validateQueryFilters(
|
const queryFilters = validateQueryFilters(
|
||||||
|
|
|
||||||
|
|
@ -1705,6 +1705,9 @@ export async function initConfig(
|
||||||
// happen in the CLI during the `database init` command, so no need
|
// happen in the CLI during the `database init` command, so no need
|
||||||
// to download them here.
|
// to download them here.
|
||||||
if (!(await useCodeScanningConfigInCli(codeQL, featureFlags))) {
|
if (!(await useCodeScanningConfigInCli(codeQL, featureFlags))) {
|
||||||
|
logger.info(
|
||||||
|
"Code Scanning configuration file being processed in the codeql CLI."
|
||||||
|
);
|
||||||
const registries = parseRegistries(registriesInput);
|
const registries = parseRegistries(registriesInput);
|
||||||
await downloadPacks(
|
await downloadPacks(
|
||||||
codeQL,
|
codeQL,
|
||||||
|
|
@ -1715,6 +1718,10 @@ export async function initConfig(
|
||||||
config.tempDir,
|
config.tempDir,
|
||||||
logger
|
logger
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
logger.info(
|
||||||
|
"Code Scanning configuration file being processed in the codeql-action."
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Save the config so we can easily access it again in the future
|
// Save the config so we can easily access it again in the future
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue