Skip to content

Json report from cx cli is same as in cx UI (AST-94779) #1142

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

cx-sumit-morchhale
Copy link
Contributor

@cx-sumit-morchhale cx-sumit-morchhale commented May 14, 2025

I made code changes for new JSON report format by using same approach as PDF.
Command :
For new json report from results show and scan create command.

  1. use jsonReport in place of json for --report-format flag.
  2. use --report-json-email flag in place of --email flag.
  3. use --report-json-options flag in place --filter flag.

--report-json-options (Default: All Sections)
Specify the sections that will be included in the jsonReport format report.
This flag can only be used when --report-format is set as jsonReport.
Available sections are: Sast, Sca, Iac-Security, ScanSummary, ExecutiveSummary, and ScanResults.
ScanResults includes results for all scanners (IaC-Security, Sast and Sca).

cx results show --report-format jsonReport --scan-id <scan_id>

cx scan create --project-name <Project_Name> -s <Repo_URL> --branch <branch_name> --report-format jsonReport --report-json-email <email_id> --report-json-options <report_options>

@cx-sumit-morchhale cx-sumit-morchhale changed the title json report from cx cli is same as in cx UI (AST-94779) Json report from cx cli is same as in cx UI (AST-94779) May 14, 2025
Copy link

github-actions bot commented May 14, 2025

Logo
Checkmarx One – Scan Summary & Details4b14f54e-a112-4c13-94a7-fdac046aa5bd

Great job, no security vulnerabilities found in this Pull Request

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant