Skip to content

[Enhancement]: Add PR Decoration Support to the Checkmarx One Azure DevOps Scan Task #705

@wterpstra

Description

@wterpstra

Contact Details

wessel.terpstra@vattenfall.com

What problem does this solve?

Summary

The Checkmarx One ADO extension exposes a scan task that synchronously waits for results. The CLI supports pull request annotation via cx utils pr, but the extension does not expose this. This feature request asks for PR decoration to be added as optional inputs to the existing scan task.


Problem

The cx utils pr command posts scan findings as PR comments, surfacing security results directly in the code review workflow. In Azure DevOps, calling this manually is not feasible for extension users: the service connection is intentionally opaque, and the underlying credentials are not exposed to pipeline authors. There is no supported path to PR decoration, despite the CLI fully supporting it.


Why This Matters

Shifting security feedback into the PR review loop is a core value proposition of Checkmarx One. The CLI already supports it; the ADO extension just needs to expose it. For organizations managing many teams across ADO, a built-in supported option is the only viable path — requiring teams to work around an intentionally opaque service connection is not a solution.

Proposed Solution

Since the scan task already waits for results synchronously, PR decoration can happen within the same step immediately after the scan completes. Extend the existing scan task with optional PR decoration inputs:

  • Enable PR Decoration — boolean toggle, off by default
  • ADO Token$(System.AccessToken) or overridable
  • PR Number — auto-populated from $(System.PullRequest.PullRequestId) or overridable
  • Repository — auto-populated or overridable
  • Severity threshold — optional filter (e.g., High and Critical only)

Importance Level

Important

Additional Information

Idea portal: https://checkmarx.ideas.aha.io/ideas/AST-I-6242

References

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions