Skip to main content

Interacting with Checkmarx via PR Decorations

Notice

This functionality is available only for Code Repository Integration projects and not Manual Scan projects. Currently supported for: GitHub, Azure DevOps and Bitbucket Cloud.

In addition to displaying scan results, PR decorations can be used to communicate directly with Checkmarx One from within the pull request.

By adding comments that begin with @Checkmarx, users can request additional information about vulnerabilities or initiate a new scan without leaving the SCM.

Notice

To interact with Checkmarx One through PR comments, the Allow AI Usage toggle must be enabled under Global Settings > AI. This requirement applies to both AI-enabled and non-AI accounts. When the toggle is disabled, neither natural-language interactions nor predefined commands are available.

pr4.png

The available interactions depend on whether the tenant is an AI-enabled or non-AI account, as described below.

AI Enabled Accounts

For AI-enabled accounts, users can interact with Checkmarx One using natural language. For example, users can request additional information about a vulnerability or ask Checkmarx One to perform a re-scan.

When referencing a vulnerability, use the row number displayed in the PR decoration table.

Notice

GitHub and ADO: For projects with AI Triage & Remediation enabled, users can also request AI-generated remediation directly from the pull request. The AI Remediation agent can generate remediation pull requests for eligible vulnerabilities identified during the scan. See AI Triage & Remediation for additional information.

Non AI Accounts

For accounts without AI capabilities, users can interact with Checkmarx One using the supported commands described below.

  • options: Retrieve a list of available options.

  • results expand issue=<issue_id> engine=<engine> : Retrieve additional information for a specific vulnerability. Specify the issue_id, which can be found in the PR decoration (shown below), and the name of the scan engine that identified the risk (options are: sca, sast, or kics).

    image.png
  • scan run branch= <branch> : Initiate a new Checkmarx One scan. Optional parameter 'branch' can be added to this command. Default: source branch.