Skip to content

Commit fb6f485

Browse files
authored
Merge pull request #32 from microsoft/omerbareket/change_cli_address
Change CLI base url
2 parents 3434ca0 + ef8f4ce commit fb6f485

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

src/defender-client.ts

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,8 @@ async function scan(
103103
'scan',
104104
scanType,
105105
target,
106-
'--defender-policy', policy,
107-
'--defender-output', outputPath
106+
'--policy', policy,
107+
'--output', outputPath
108108
];
109109

110110
// Append additional arguments if provided
@@ -178,13 +178,6 @@ async function runDefenderCli(inputArgs: string[], successfulExitCodes: number[]
178178
}
179179
}
180180

181-
let systemDebug = tl.getVariable("system.debug");
182-
183-
if (systemDebug == 'true') {
184-
// Add verbose logging if system debug is enabled
185-
tool.arg('--defender-debug');
186-
}
187-
188181
} catch (error) {
189182
console.error('Exception occurred while initializing Defender CLI:');
190183
tl.setResult(tl.TaskResult.Failed, error);

src/defender-installer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ function handleDownloadResponse(
159159
* @returns The complete download URL
160160
*/
161161
function getDownloadUrl(fileName: string, cliVersion: string): string {
162-
const baseUrl = 'https://cli.dfd.security.azure.com/public';
162+
const baseUrl = 'https://cli.dfd.security.azure.com/public/v2';
163163
console.log(`getDownloadUrl called with fileName: '${fileName}', cliVersion: '${cliVersion}'`);
164164

165165
// Convert 'Latest' to 'latest' for URL compatibility

0 commit comments

Comments
 (0)