Skip to content

Commit

Permalink
chore: Change tool installation directory
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenden committed Sep 26, 2023
1 parent 3cef0b2 commit 20f93fa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setup/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion setup/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string> {
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.
Expand Down

0 comments on commit 20f93fa

Please sign in to comment.