fix linter issues

This commit is contained in:
Tugdual Grall 2023-03-18 15:14:34 +00:00
parent 94786b354b
commit 2f141340f0
5 changed files with 8 additions and 11 deletions

View file

@ -1708,12 +1708,14 @@ export async function initConfig(
// if configuration is set, it takes precedence over configFile
if (configuration) {
const configFileToCreate = path.resolve(workspacePath, "user-config-from-action.yml");
const configFileToCreate = path.resolve(
workspacePath,
"user-config-from-action.yml"
);
fs.writeFileSync(configFileToCreate, configuration);
configFile = configFileToCreate;
logger.debug(`Using configuration from action input: ${configFile}`);
}
// If no config file was provided create an empty one
if (!configFile) {
@ -1758,7 +1760,6 @@ export async function initConfig(
);
}
// When using the codescanning config in the CLI, pack downloads
// happen in the CLI during the `database init` command, so no need
// to download them here.