File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -106,7 +106,7 @@ describe('Testing all functions in run file.', () => {
106
106
expect ( toolCache . downloadTool ) . toBeCalled ( ) ;
107
107
expect ( toolCache . cacheFile ) . toBeCalled ( ) ;
108
108
expect ( os . type ) . toBeCalled ( ) ;
109
- expect ( fs . chmodSync ) . toBeCalledWith ( path . join ( 'pathToCachedTool' , 'kubectl.exe' ) , '777 ' ) ;
109
+ expect ( fs . chmodSync ) . toBeCalledWith ( path . join ( 'pathToCachedTool' , 'kubectl.exe' ) , '775 ' ) ;
110
110
} ) ;
111
111
112
112
test ( 'downloadKubectl() - throw DownloadKubectlFailed error when unable to download kubectl' , async ( ) => {
@@ -144,7 +144,7 @@ describe('Testing all functions in run file.', () => {
144
144
expect ( await run . downloadKubectl ( 'v1.15.0' ) ) . toBe ( path . join ( 'pathToCachedTool' , 'kubectl.exe' ) ) ;
145
145
expect ( toolCache . find ) . toBeCalledWith ( 'kubectl' , 'v1.15.0' ) ;
146
146
expect ( os . type ) . toBeCalled ( ) ;
147
- expect ( fs . chmodSync ) . toBeCalledWith ( path . join ( 'pathToCachedTool' , 'kubectl.exe' ) , '777 ' ) ;
147
+ expect ( fs . chmodSync ) . toBeCalledWith ( path . join ( 'pathToCachedTool' , 'kubectl.exe' ) , '775 ' ) ;
148
148
expect ( toolCache . downloadTool ) . not . toBeCalled ( ) ;
149
149
} ) ;
150
150
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ export async function downloadKubectl(version: string): Promise<string> {
57
57
}
58
58
59
59
const kubectlPath = path . join ( cachedToolpath , kubectlToolName + getExecutableExtension ( ) ) ;
60
- fs . chmodSync ( kubectlPath , '777 ' ) ;
60
+ fs . chmodSync ( kubectlPath , '775 ' ) ;
61
61
return kubectlPath ;
62
62
}
63
63
You can’t perform that action at this time.
0 commit comments