From 20f93fa55b7f91a3a7d8815b30e3735948878fe8 Mon Sep 17 00:00:00 2001 From: Ruud Senden <8635138+rsenden@users.noreply.github.com> Date: Tue, 26 Sep 2023 12:27:18 +0200 Subject: [PATCH] chore: Change tool installation directory --- setup/dist/index.js | 3 ++- setup/src/setup.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/setup/dist/index.js b/setup/dist/index.js index a45afb9..8a502d9 100644 --- a/setup/dist/index.js +++ b/setup/dist/index.js @@ -6635,7 +6635,8 @@ function installAndConfigure(internalFcliCmd, toolName, toolVersion) { */ function installIfNotCached(internalFcliCmd, toolName, toolVersion, log) { return __awaiter(this, void 0, void 0, function* () { - const installPath = `/opt/fortify/${toolName}/${toolVersion}`; + const tmpPath = process.env['RUNNER_TEMP']; + const installPath = `${tmpPath}/fortify/${toolName}/${toolVersion}`; // We explicitly don't use GitHub tool-cache as we support semantic versioning; // versions like 'latest' or 'v2' may change over time so we don't want to use // an older cached version in case new versions are released. diff --git a/setup/src/setup.ts b/setup/src/setup.ts index d58fef5..fdd1a07 100644 --- a/setup/src/setup.ts +++ b/setup/src/setup.ts @@ -48,7 +48,8 @@ async function installAndConfigure(internalFcliCmd: string, toolName: string, to * if applicable. */ async function installIfNotCached(internalFcliCmd: string, toolName: string, toolVersion: string, log: (arg: string) => void): Promise { - const installPath = `/opt/fortify/${toolName}/${toolVersion}`; + const tmpPath = process.env['RUNNER_TEMP']; + const installPath = `${tmpPath}/fortify/${toolName}/${toolVersion}`; // We explicitly don't use GitHub tool-cache as we support semantic versioning; // versions like 'latest' or 'v2' may change over time so we don't want to use // an older cached version in case new versions are released.