1
0
Fork 0
mirror of https://github.com/actions/checkout.git synced 2025-05-14 02:19:29 +02:00

Implement allow-path-outside-workspace

This commit is contained in:
xavisolesoft 2024-12-18 10:08:23 +01:00
parent cbb722410c
commit d1d381abe7
4 changed files with 11 additions and 1 deletions

View file

@ -42,6 +42,7 @@ export async function getInputs(): Promise<IGitSourceSettings> {
result.repositoryPath
)
if (
!core.getInput('allow-path-outside-workspace') &&
!(result.repositoryPath + path.sep).startsWith(
githubWorkspacePath + path.sep
)