From eb8d76c670114822594a2c25cde341adfbab5d60 Mon Sep 17 00:00:00 2001 From: Rodrigo Rodrigues Date: Sun, 17 Oct 2021 14:51:35 -0300 Subject: [PATCH] Removed validation for "Repository path is under" the GITHUB_WORKSPACE --- src/input-helper.ts | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/input-helper.ts b/src/input-helper.ts index e1e239804..8953f9905 100644 --- a/src/input-helper.ts +++ b/src/input-helper.ts @@ -40,15 +40,6 @@ export function getInputs(): IGitSourceSettings { githubWorkspacePath, result.repositoryPath ) - if ( - !(result.repositoryPath + path.sep).startsWith( - githubWorkspacePath + path.sep - ) - ) { - throw new Error( - `Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'` - ) - } // Workflow repository? const isWorkflowRepository =