mirror of
https://github.com/github/codeql-action.git
synced 2026-10-31 01:49:43 +00:00
Stat path to check it is a file
This commit is contained in:
2
lib/entry-points.js
generated
2
lib/entry-points.js
generated
@@ -149242,7 +149242,7 @@ async function loadUserConfig(actionState, configFile, workspacePath, apiDetails
|
||||
} else if (isLocal(configFile)) {
|
||||
const localFilePath = path10.resolve(workspacePath, configFile);
|
||||
const workspaceRelative = isWorkspaceRelative(localFilePath);
|
||||
if (workspaceRelative && fs9.existsSync(localFilePath)) {
|
||||
if (workspaceRelative && fs9.statSync(localFilePath, { throwIfNoEntry: false })?.isFile()) {
|
||||
configFile = localFilePath;
|
||||
localFile = true;
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user