mirror of
https://github.com/github/codeql-action.git
synced 2026-11-08 14:09:51 +00:00
Always check whether config file exists
And emit a warning if it doesn't
This commit is contained in:
@@ -927,7 +927,13 @@ async function getCodeQLForCmd(
|
||||
let configPath: string | undefined =
|
||||
getGeneratedCodeScanningConfigPath(config);
|
||||
|
||||
if (diagnosticDir !== undefined && !fs.existsSync(configPath)) {
|
||||
if (!fs.existsSync(configPath)) {
|
||||
logger.warning(
|
||||
[
|
||||
`Expected a configuration file at '${configPath}', which does not exist.`,
|
||||
"Continuing with diagnostics export anyway, without a configuration file.",
|
||||
].join(" "),
|
||||
);
|
||||
configPath = undefined;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user