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
)