Skip to content

feat: update cli to 1.22.1 #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 26, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ export class ActionInputs {
}

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

Expand Down
2 changes: 1 addition & 1 deletion src/scanner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import os from 'os';
import process from 'process';
const performance = require('perf_hooks').performance;

const cliScannerVersion = "1.18.0"
const cliScannerVersion = "1.22.1"
const cliScannerOS = getRunOS()
const cliScannerArch = getRunArch()
const cliScannerURLBase = "https://download.sysdig.com/scanning/bin/sysdig-cli-scanner";
Expand Down
2 changes: 1 addition & 1 deletion tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ describe("run the full action", () => {

await index.run();
expect(mockExec).toHaveBeenCalledTimes(4);
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`);
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`);
});
});

Expand Down
Loading