Skip to main content

triage

The triage command enables the ability to manage results in Checkmarx One.

For more information about triaging results in Checkmarx One, see Managing (Triaging) Vulnerabilities.

Usage

./cx triage [command] [flags]

triage update

The triage update command enables the ability to triage the results in Checkmarx One.

Usage

./cx triage update [flags]

Flags

Name

Default

Description

--comment <string>

Optional comment

--project-id <string>

Project ID

--scan-type <string>

Scan type (sast or kics)

--severity <string>

Severity type (high, medium, low, info)

--similarity-id <string>

Similarity ID

--state <string>

State

--help

help for the update command

Examples

Update result

./cx triage update --scan-type <scan-type> --project-id <project-id> --similarity-id <similarity-id> --state <state> --severity <severity>
[email protected]:~/ast-cli$ ./cx triage update --scan-type "sast" --project-id "885ca4ad-5926-4177-b51c-fa1d11248d84" --similarity-id "549106280"  --state "confirmed" --severity "low"
Predicate updated successfully.

triage show

The triage show command provides a list of all the predicates in the issue.

Usage

./cx triage show [flags]

Flags

Name

Default

Description

--project-id <string>

Project ID

--scan-type <string>

Scan type (sast or kics)

--similarity-id <string>

Similarity ID

--format <string>

list

  • Selects the output format.

  • Select one of the following formats:

    json, list, table

--help

help for the show command

Examples

Update result

./cx triage show --scan-type <scan-type> --project-id <project-id> --similarity-id <similarity-id>
[email protected]:~/ast-cli$ ./cx.exe triage show --scan-type "sast" --project-id "885ca4ad-5926-4177-b51c-fa1d11248d84" --similarity-id "549106280"
Fetching the predicate history for SimilarityId : 549106280

ID            : d10e7acd-d59a-4cbf-afd1-146e0253f23e
Project ID    : 885ca4ad-5926-4177-b51c-fa1d11248d84
Similarity ID : 549106280
Severity      : LOW
State         : CONFIRMED
Comment       : Edited via CLI
CreatedBy     : service-account-user_client
Created at    : 01-03-22

ID            : bc8808bb-7f50-4626-8aed-484f8f7aea91
Project ID    : 885ca4ad-5926-4177-b51c-fa1d11248d84
Similarity ID : 549106280
Severity      : MEDIUM
State         : CONFIRMED
Comment       : Edited via CLI
CreatedBy     : service-account-user_client
Created at    : 01-03-22

ID            : 034b222a-56fd-46af-8b9b-f34a67f48229
Project ID    : 885ca4ad-5926-4177-b51c-fa1d11248d84
Similarity ID : 549106280
Severity      : LOW
State         : CONFIRMED
Comment       : Edited via CLI
CreatedBy     : service-account-user_client
Created at    : 01-03-22

ID            : 5147c12a-9021-4c25-97c7-b0cc27a6a449
Project ID    : 885ca4ad-5926-4177-b51c-fa1d11248d84
Similarity ID : 549106280
Severity      : MEDIUM
State         : TO_VERIFY
Comment       :
CreatedBy     : user
Created at    : 01-03-22

ID            : f590fdb8-1a1a-492f-ab3d-8e3693e59359
Project ID    : 885ca4ad-5926-4177-b51c-fa1d11248d84
Similarity ID : 549106280
Severity      : HIGH
State         : TO_VERIFY
Comment       :
CreatedBy     : user
Created at    : 01-03-22