mirror of
https://github.com/actions/checkout.git
synced 2025-12-14 06:19:24 +00:00
Implement allow-path-outside-workspace
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user