Skip to content

Commit eb5f3b8

Browse files
Itay PazItay Paz
authored andcommitted
revert secretsscanresults
1 parent aad6930 commit eb5f3b8

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/wrapper/CxWrapper.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,12 @@ export class CxWrapper {
168168
return await exec.executeCommands(this.config.pathToExecutable, commands, CxConstants.SCAN_OSS);
169169
}
170170

171+
async secretsScanResults(sourceFile: string): Promise<CxCommandOutput> {
172+
const commands: string[] = [CxConstants.CMD_SCAN, CxConstants.CMD_SECRETS, CxConstants.SOURCE, sourceFile];
173+
commands.push(...this.initializeCommands(false));
174+
const exec = new ExecutionService();
175+
return await exec.executeCommands(this.config.pathToExecutable, commands, CxConstants.SCAN_SECRETS);
176+
}
171177

172178
async scanCancel(id: string): Promise<CxCommandOutput> {
173179
const commands: string[] = [CxConstants.CMD_SCAN, CxConstants.SUB_CMD_CANCEL, CxConstants.SCAN_ID, id];

0 commit comments

Comments
 (0)