@@ -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.
@@ -537,7 +531,9 @@ export async function getDefaultConfig({
537531 githubVersion,
538532 features,
539533 logger,
540- } : InitConfigInputs ) : Promise < Config > {
534+ } : InitConfigInputs ) : Promise <
535+ Config & { augmentationProperties : AugmentationProperties }
536+ > {
541537 const analysisKinds = await parseAnalysisKinds ( analysisKindsInput ) ;
542538
543539 // For backwards compatibility, add Code Quality to the enabled analysis kinds
@@ -1105,14 +1101,14 @@ export async function initConfig(inputs: InitConfigInputs): Promise<Config> {
11051101 ) ;
11061102 }
11071103
1108- const config = await getDefaultConfig ( inputs ) ;
1104+ const { augmentationProperties , ... config } = await getDefaultConfig ( inputs ) ;
11091105 config . originalUserInput = userConfig ;
11101106
11111107 // Compute the full Code Scanning configuration that combines the configuration from the
11121108 // configuration file / `config` input with other inputs, such as `queries`.
11131109 config . computedConfig = generateCodeScanningConfig (
11141110 userConfig ,
1115- config . augmentationProperties ,
1111+ augmentationProperties ,
11161112 ) ;
11171113
11181114 // The choice of overlay database mode depends on the selection of languages
0 commit comments