@@ -144,12 +144,6 @@ export interface Config {
144144 * Specifies the name of the database in the debugging artifact.
145145 */
146146 debugDatabaseName : string ;
147-
148- /**
149- * Describes how to augment the user configuration with inputs from the action.
150- */
151- augmentationProperties : AugmentationProperties ;
152-
153147 /**
154148 * The configuration we computed by combining `originalUserInput` with `augmentationProperties`,
155149 * as well as adjustments made to it based on unsupported or required options.
@@ -536,7 +530,9 @@ export async function getDefaultConfig({
536530 githubVersion,
537531 features,
538532 logger,
539- } : InitConfigInputs ) : Promise < Config > {
533+ } : InitConfigInputs ) : Promise <
534+ Config & { augmentationProperties : AugmentationProperties }
535+ > {
540536 const analysisKinds = await parseAnalysisKinds ( analysisKindsInput ) ;
541537
542538 // For backwards compatibility, add Code Quality to the enabled analysis kinds
@@ -1104,14 +1100,14 @@ export async function initConfig(inputs: InitConfigInputs): Promise<Config> {
11041100 ) ;
11051101 }
11061102
1107- const config = await getDefaultConfig ( inputs ) ;
1103+ const { augmentationProperties , ... config } = await getDefaultConfig ( inputs ) ;
11081104 config . originalUserInput = userConfig ;
11091105
11101106 // Compute the full Code Scanning configuration that combines the configuration from the
11111107 // configuration file / `config` input with other inputs, such as `queries`.
11121108 config . computedConfig = generateCodeScanningConfig (
11131109 userConfig ,
1114- config . augmentationProperties ,
1110+ augmentationProperties ,
11151111 ) ;
11161112
11171113 // The choice of overlay database mode depends on the selection of languages
0 commit comments