Don't enforce that checkout path must be inside of Github Workspace

Fixes #327, Fixes #197.
And i also hit this.
This commit is contained in:
Roman Lebedev 2020-11-14 09:50:33 +03:00
parent 5a4ac9002d
commit edb45c76ac
No known key found for this signature in database
GPG key ID: 083C3EBB4A1689E0
4 changed files with 2 additions and 14 deletions

3
dist/index.js vendored
View file

@ -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();