fix linter issues
This commit is contained in:
parent
94786b354b
commit
2f141340f0
5 changed files with 8 additions and 11 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue