Skip to content

Commit ba3b4c7

Browse files
authored
feat: update cli to 1.22.1 (#75)
1 parent ef20768 commit ba3b4c7

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/action.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ export class ActionInputs {
210210
}
211211

212212
if (this.params.mode == ScanMode.vm) {
213-
flags += ` --json-scan-result=${cliScannerResult}`
213+
flags += ` --output=json-file=${cliScannerResult}`
214214
flags += ` ${this.params.imageTag}`;
215215
}
216216

src/scanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import os from 'os';
44
import process from 'process';
55
const performance = require('perf_hooks').performance;
66

7-
const cliScannerVersion = "1.18.0"
7+
const cliScannerVersion = "1.22.1"
88
const cliScannerOS = getRunOS()
99
const cliScannerArch = getRunArch()
1010
const cliScannerURLBase = "https://download.sysdig.com/scanning/bin/sysdig-cli-scanner";

tests/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -462,7 +462,7 @@ describe("run the full action", () => {
462462

463463
await index.run();
464464
expect(mockExec).toHaveBeenCalledTimes(4);
465-
expect(mockExec.mock.calls[2][0]).toMatch(`${index.cliScannerName} --apiurl https://secure.sysdig.com/ --override-pullstring=my-custom-image:latest --json-scan-result=scan-result.json image:tag`);
465+
expect(mockExec.mock.calls[2][0]).toMatch(`${index.cliScannerName} --apiurl https://secure.sysdig.com/ --override-pullstring=my-custom-image:latest --output=json-file=scan-result.json image:tag`);
466466
});
467467
});
468468

0 commit comments

Comments
 (0)