1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-03-28 11:00:05 +01:00

rm gh workspace checks

This commit is contained in:
shuynh 2021-08-09 19:58:41 -04:00
parent 25a956c84d
commit b58389b65b
2 changed files with 1 additions and 13 deletions

5
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();
@ -31296,4 +31293,4 @@ function authenticationRequestError(state, error, options) {
/***/ })
/******/ });
/******/ });

View file

@ -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 =