Skip to content

Commit 40e2575

Browse files
committed
Store computed Code Scanning config in variable
1 parent 8b8fbd5 commit 40e2575

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

lib/init-action.js

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

src/config-utils.ts

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1110,6 +1110,13 @@ export async function initConfig(inputs: InitConfigInputs): Promise<Config> {
11101110
// Store the `UserConfig` (if any) in the `Config`.
11111111
config.originalUserInput = userConfig;
11121112

1113+
// Compute the full Code Scanning configuration that combines the configuration from the
1114+
// configuration file / `config` input with other inputs, such as `queries`.
1115+
const codeScanningConfig = generateCodeScanningConfig(
1116+
userConfig,
1117+
config.augmentationProperties,
1118+
);
1119+
11131120
// The choice of overlay database mode depends on the selection of languages
11141121
// and queries, which in turn depends on the user config and the augmentation
11151122
// properties. So we need to calculate the overlay database mode after the
@@ -1122,7 +1129,7 @@ export async function initConfig(inputs: InitConfigInputs): Promise<Config> {
11221129
config.languages,
11231130
inputs.sourceRoot,
11241131
config.buildMode,
1125-
generateCodeScanningConfig(userConfig, config.augmentationProperties),
1132+
codeScanningConfig,
11261133
logger,
11271134
);
11281135
logger.info(

0 commit comments

Comments
 (0)