mirror of
https://github.com/github/codeql-action.git
synced 2026-05-02 03:40:10 +00:00
Rename getDefaultConfig and update doc comment
This commit is contained in:
Generated
+2
-2
@@ -87238,7 +87238,7 @@ async function getRawLanguages(languagesInput, repository, sourceRoot, logger) {
|
||||
autodetected: true
|
||||
};
|
||||
}
|
||||
async function getDefaultConfig({
|
||||
async function initActionState({
|
||||
analysisKindsInput,
|
||||
languagesInput,
|
||||
queriesInput,
|
||||
@@ -87604,7 +87604,7 @@ async function initConfig(inputs) {
|
||||
tempDir
|
||||
);
|
||||
}
|
||||
const config = await getDefaultConfig(inputs, userConfig);
|
||||
const config = await initActionState(inputs, userConfig);
|
||||
const { overlayDatabaseMode, useOverlayDatabaseCaching } = await getOverlayDatabaseMode(
|
||||
inputs.codeql,
|
||||
inputs.repository,
|
||||
|
||||
@@ -157,7 +157,7 @@ test("load empty config", async (t) => {
|
||||
}),
|
||||
);
|
||||
|
||||
const expectedConfig = await configUtils.getDefaultConfig(
|
||||
const expectedConfig = await configUtils.initActionState(
|
||||
createTestInitConfigInputs({
|
||||
languagesInput: languages,
|
||||
tempDir,
|
||||
|
||||
+4
-3
@@ -508,9 +508,10 @@ export interface InitConfigInputs {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the default config, populated without user configuration file.
|
||||
* Initialise the CodeQL Action state, which includes the base configuration for the Action
|
||||
* and computes the configuration for the CodeQL CLI.
|
||||
*/
|
||||
export async function getDefaultConfig(
|
||||
export async function initActionState(
|
||||
{
|
||||
analysisKindsInput,
|
||||
languagesInput,
|
||||
@@ -1107,7 +1108,7 @@ export async function initConfig(inputs: InitConfigInputs): Promise<Config> {
|
||||
);
|
||||
}
|
||||
|
||||
const config = await getDefaultConfig(inputs, userConfig);
|
||||
const config = await initActionState(inputs, userConfig);
|
||||
|
||||
// The choice of overlay database mode depends on the selection of languages
|
||||
// and queries, which in turn depends on the user config and the augmentation
|
||||
|
||||
Reference in New Issue
Block a user