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:
parent
cbb722410c
commit
d1d381abe7
4 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue