mirror of
https://github.com/actions/checkout.git
synced 2025-12-13 22:09:23 +00:00
Merge edb45c76ac into fd47087372
This commit is contained in:
3
dist/index.js
vendored
3
dist/index.js
vendored
@@ -17093,9 +17093,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();
|
||||
|
||||
Reference in New Issue
Block a user