From b58389b65b23e03ae01c0c927a86ddf39c128fc1 Mon Sep 17 00:00:00 2001 From: shuynh <steven.huynh@leaflink.com> Date: Mon, 9 Aug 2021 19:58:41 -0400 Subject: [PATCH] rm gh workspace checks --- dist/index.js | 5 +---- src/input-helper.ts | 9 --------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/dist/index.js b/dist/index.js index e765cc2..77d453a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -14537,9 +14537,6 @@ function getInputs() { // Repository path result.repositoryPath = core.getInput('path') || '.'; result.repositoryPath = path.resolve(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 = qualifiedRepository.toUpperCase() === `${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase(); @@ -31296,4 +31293,4 @@ function authenticationRequestError(state, error, options) { /***/ }) -/******/ }); \ No newline at end of file +/******/ }); diff --git a/src/input-helper.ts b/src/input-helper.ts index 4c05d6e..65b8614 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 =