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 =