Skip to content

Commit f8605b9

Browse files
committed
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.
1 parent 4cf8004 commit f8605b9

File tree

6 files changed

+30
-2
lines changed

6 files changed

+30
-2
lines changed

lib/analyze.js

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/analyze.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.js

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/config-utils.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/analyze.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,17 @@ export async function runQueries(
239239
}
240240

241241
const codeql = await getCodeQL(config.codeQLCmd);
242+
243+
if (await util.useCodeScanningConfigInCli(codeql, featureFlags)) {
244+
logger.info(
245+
"Code Scanning configuration file being processed in the codeql-action."
246+
);
247+
} else {
248+
logger.info(
249+
"Code Scanning configuration file being processed in the codeql CLI."
250+
);
251+
}
252+
242253
for (const language of config.languages) {
243254
const queries = config.queries[language];
244255
const queryFilters = validateQueryFilters(

src/config-utils.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,6 +1705,9 @@ export async function initConfig(
17051705
// happen in the CLI during the `database init` command, so no need
17061706
// to download them here.
17071707
if (!(await useCodeScanningConfigInCli(codeQL, featureFlags))) {
1708+
logger.info(
1709+
"Code Scanning configuration file being processed in the codeql-action."
1710+
);
17081711
const registries = parseRegistries(registriesInput);
17091712
await downloadPacks(
17101713
codeQL,
@@ -1715,6 +1718,10 @@ export async function initConfig(
17151718
config.tempDir,
17161719
logger
17171720
);
1721+
} else {
1722+
logger.info(
1723+
"Code Scanning configuration file being processed in the codeql CLI."
1724+
);
17181725
}
17191726

17201727
// Save the config so we can easily access it again in the future

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy