From 87dcf5f5c09f41b48d84ffde0d9834f891754205 Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Sun, 8 Sep 2024 16:09:13 +0300 Subject: [PATCH 1/2] Update to version 4.3. --- lib/utils.js | 4 ---- src/utils.ts | 5 ----- 2 files changed, 9 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 3e297d80f..126a6d1e0 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -264,10 +264,6 @@ class Utils { core.addPath(jfCacheDir); let jfrogCacheDir = yield toolCache.cacheFile(downloadedExecutable, jfrogFileName, jfrogFileName, version); core.addPath(jfrogCacheDir); - if (!Utils.isWindows()) { - (0, fs_1.chmodSync)((0, path_1.join)(jfCacheDir, jfFileName), 0o555); - (0, fs_1.chmodSync)((0, path_1.join)(jfrogCacheDir, jfrogFileName), 0o555); - } }); } /** diff --git a/src/utils.ts b/src/utils.ts index c36c28c52..877cdbdd6 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -300,11 +300,6 @@ export class Utils { let jfrogCacheDir: string = await toolCache.cacheFile(downloadedExecutable, jfrogFileName, jfrogFileName, version); core.addPath(jfrogCacheDir); - - if (!Utils.isWindows()) { - chmodSync(join(jfCacheDir, jfFileName), 0o555); - chmodSync(join(jfrogCacheDir, jfrogFileName), 0o555); - } } /** From fafdedf7d7e990efccdadc4f903bdd1418ea1452 Mon Sep 17 00:00:00 2001 From: Michael Sverdlov Date: Sun, 8 Sep 2024 16:11:28 +0300 Subject: [PATCH 2/2] Update to version 4.3. --- lib/utils.js | 8 ++++---- src/utils.ts | 9 +++++---- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/lib/utils.js b/lib/utils.js index 126a6d1e0..1a05f5af5 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -239,10 +239,6 @@ class Utils { if (jfExecDir && jfrogExecDir) { core.addPath(jfExecDir); core.addPath(jfrogExecDir); - if (!Utils.isWindows()) { - (0, fs_1.chmodSync)((0, path_1.join)(jfExecDir, jfFileName), 0o555); - (0, fs_1.chmodSync)((0, path_1.join)(jfrogExecDir, jfrogFileName), 0o555); - } return true; } return false; @@ -264,6 +260,10 @@ class Utils { core.addPath(jfCacheDir); let jfrogCacheDir = yield toolCache.cacheFile(downloadedExecutable, jfrogFileName, jfrogFileName, version); core.addPath(jfrogCacheDir); + if (!Utils.isWindows()) { + (0, fs_1.chmodSync)((0, path_1.join)(jfCacheDir, jfFileName), 0o555); + (0, fs_1.chmodSync)((0, path_1.join)(jfrogCacheDir, jfrogFileName), 0o555); + } }); } /** diff --git a/src/utils.ts b/src/utils.ts index 877cdbdd6..c92ef1524 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -274,10 +274,6 @@ export class Utils { core.addPath(jfExecDir); core.addPath(jfrogExecDir); - if (!Utils.isWindows()) { - chmodSync(join(jfExecDir, jfFileName), 0o555); - chmodSync(join(jfrogExecDir, jfrogFileName), 0o555); - } return true; } return false; @@ -300,6 +296,11 @@ export class Utils { let jfrogCacheDir: string = await toolCache.cacheFile(downloadedExecutable, jfrogFileName, jfrogFileName, version); core.addPath(jfrogCacheDir); + + if (!Utils.isWindows()) { + chmodSync(join(jfCacheDir, jfFileName), 0o555); + chmodSync(join(jfrogCacheDir, jfrogFileName), 0o555); + } } /**