mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 01:27:22 +00:00
fix linter issues
This commit is contained in:
@@ -936,9 +936,7 @@ test("Queries can be specified in configuration, same as file", async (t) => {
|
||||
- a/b@1.2.3
|
||||
python:
|
||||
- c/d@1.2.3
|
||||
`;
|
||||
|
||||
|
||||
`;
|
||||
|
||||
fs.mkdirSync(path.join(tmpDir, "foo"));
|
||||
|
||||
@@ -2757,5 +2755,3 @@ const mockRepositoryNwo = parseRepositoryNwo("owner/repo");
|
||||
t.deepEqual(mockRequest.called, args.expectedApiCall);
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user