Skip to content

fix(scan): the json and yaml output of devops scan holds the status and the reason of the scan, so a scan with no result does not read as clean #2107

Closed

Description

@dan-petty

Friction

devops scan trivy|sast|secrets with --format json or yaml prints only the findings. A scan that gave no result (not installed, failed, not_applicable) prints [], which reads as a clean scan. The MCP tools give this output for output_format: json, so an agent reads a missing scanner as "no findings".

What should happen

The JSON and YAML output holds the status and the reason of the scan next to the findings. A scan that gave no result never prints only [].

Evidence

Source: #1435

Activity

  1. added
    source/agent
    type/bug
    on Oct 24, 2026
  2. dan-petty commented on Oct 24, 2026

    @dan-petty
    OwnerAuthor

    Intake placed this item to the backlog: intake puts every new item in the backlog. A person plans the milestones on the board.

    • Type: type/bug. The candidate describes a problem in how devops scan outputs findings, which is a bug fix.
    • Priority: P2-Medium. This issue affects the clarity of scan results and can mislead users about scan status. The failed run 1435 does not set P0: the author has no write access, and no caller attached it as evidence. A person can set P0 on the board.
    • Value: Medium. Improving output clarity helps users understand scan results better.
    • Effort: Low. The change only requires adding status and reason to existing JSON/YAML outputs.
    • Related: fix(security): the pluto, popeye and gitleaks adapters read what those tools actually write #1434, which asks for a different change. Both items deal with scan output formats but the candidate focuses on status and reason while #1434 focuses on adapter output accuracy.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    source/agenttype/bug

    Type

    No type

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions