File tree 4 files changed +2
-14
lines changed
4 files changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ Refer [here](https://github.com/actions/checkout/blob/v1/README.md) for previous
82
82
# Default: true
83
83
persist-credentials : ' '
84
84
85
- # Relative path under $GITHUB_WORKSPACE to place the repository
85
+ # Path relative to $GITHUB_WORKSPACE to place the repository
86
86
path : ' '
87
87
88
88
# Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching
Original file line number Diff line number Diff line change @@ -49,7 +49,7 @@ inputs:
49
49
description : ' Whether to configure the token or SSH key with the local git config'
50
50
default : true
51
51
path :
52
- description : ' Relative path under $GITHUB_WORKSPACE to place the repository'
52
+ description : ' Path relative to $GITHUB_WORKSPACE to place the repository'
53
53
clean :
54
54
description : ' Whether to execute `git clean -ffdx && git reset --hard HEAD` before fetching'
55
55
default : true
Original file line number Diff line number Diff line change @@ -14537,9 +14537,6 @@ function getInputs() {
14537
14537
// Repository path
14538
14538
result.repositoryPath = core.getInput('path') || '.';
14539
14539
result.repositoryPath = path.resolve(githubWorkspacePath, result.repositoryPath);
14540
- if (!(result.repositoryPath + path.sep).startsWith(githubWorkspacePath + path.sep)) {
14541
- throw new Error(`Repository path '${result.repositoryPath}' is not under '${githubWorkspacePath}'`);
14542
- }
14543
14540
// Workflow repository?
14544
14541
const isWorkflowRepository = qualifiedRepository.toUpperCase() ===
14545
14542
`${github.context.repo.owner}/${github.context.repo.repo}`.toUpperCase();
Original file line number Diff line number Diff line change @@ -40,15 +40,6 @@ export function getInputs(): IGitSourceSettings {
40
40
githubWorkspacePath ,
41
41
result . repositoryPath
42
42
)
43
- if (
44
- ! ( result . repositoryPath + path . sep ) . startsWith (
45
- githubWorkspacePath + path . sep
46
- )
47
- ) {
48
- throw new Error (
49
- `Repository path '${ result . repositoryPath } ' is not under '${ githubWorkspacePath } '`
50
- )
51
- }
52
43
53
44
// Workflow repository?
54
45
const isWorkflowRepository =
You can’t perform that action at this time.
0 commit comments