Skip to content

Commit

Permalink
chore: Add support for bugtracker-utility
Browse files Browse the repository at this point in the history
  • Loading branch information
rsenden committed Sep 23, 2023
1 parent c49595a commit 63ad4ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
9 changes: 7 additions & 2 deletions setup/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6719,8 +6719,13 @@ function exportVariables(toolName, toolVersion, installPath) {
case 'fod-uploader':
cmd = 'FoDUpload';
break;
case 'bugtracker-utility':
cmd = 'FortifyBugTrackerUtility';
break;
}
if (cmd) {
core.exportVariable(varBaseName + '_CMD', core.toPlatformPath(`${installPath}/bin/${cmd}`));
}
core.exportVariable(varBaseName + '_CMD', core.toPlatformPath(`${installPath}/bin/${cmd}`));
}
/**
* Get the configured tool version for the given tool.
Expand All @@ -6747,7 +6752,7 @@ function main() {
const internalFcliPath = yield installIfNotCached('', 'fcli', INTERNAL_FCLI_VERSION, core.debug);
const internalFcliCmd = core.toPlatformPath(`${internalFcliPath}/bin/fcli`);
// Install user-specified tools
const tools = ['fcli', 'sc-client', 'fod-uploader', 'vuln-exporter'];
const tools = ['fcli', 'sc-client', 'fod-uploader', 'vuln-exporter', 'bugtracker-utility'];
for (const tool of tools) {
yield installAndConfigure(internalFcliCmd, tool, getToolVersion(tool));
}
Expand Down
7 changes: 5 additions & 2 deletions setup/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,11 @@ function exportVariables(toolName: string, toolVersion: string, installPath: str
case 'sc-client': cmd = 'scancentral'; break;
case 'vuln-exporter': cmd = 'FortifyVulnerabilityExporter'; break;
case 'fod-uploader': cmd = 'FoDUpload'; break;
case 'bugtracker-utility': cmd = 'FortifyBugTrackerUtility'; break;
}
if (cmd) {
core.exportVariable(varBaseName+'_CMD', core.toPlatformPath(`${installPath}/bin/${cmd}`));
}
core.exportVariable(varBaseName+'_CMD', core.toPlatformPath(`${installPath}/bin/${cmd}`));
}

/**
Expand Down Expand Up @@ -149,7 +152,7 @@ async function main(): Promise<void> {
const internalFcliCmd = core.toPlatformPath(`${internalFcliPath}/bin/fcli`);

// Install user-specified tools
const tools = ['fcli', 'sc-client', 'fod-uploader', 'vuln-exporter']
const tools = ['fcli', 'sc-client', 'fod-uploader', 'vuln-exporter', 'bugtracker-utility']
for (const tool of tools) {
await installAndConfigure(internalFcliCmd, tool, getToolVersion(tool));
}
Expand Down

0 comments on commit 63ad4ea

Please sign in to comment.