mirror of
https://github.com/github/codeql-action.git
synced 2026-01-04 05:30:16 +08:00
Fix hasActionsWorkflows throwing if workflows folder doesn't exist
This commit is contained in:
@@ -341,7 +341,7 @@ const baseWorkflowsPath = ".github/workflows";
|
||||
*/
|
||||
export function hasActionsWorkflows(sourceRoot: string): boolean {
|
||||
const workflowsPath = path.resolve(sourceRoot, baseWorkflowsPath);
|
||||
const stats = fs.lstatSync(workflowsPath);
|
||||
const stats = fs.lstatSync(workflowsPath, { throwIfNoEntry: false });
|
||||
return (
|
||||
stats !== undefined &&
|
||||
stats.isDirectory() &&
|
||||
|
||||
Reference in New Issue
Block a user