Skip to content

Show Policy Evaluation Outcome in scan summary (AST-190962) - #1630

Merged
cx-aniket-shinde merged 9 commits into
stagingfrom
bugfix/AST-190962
Dec 2, 2026
Merged

cx-aniket-shinde merged 9 commits into
stagingfrom
bugfix/AST-190962

Conversation

@cx-aniket-shinde

@cx-aniket-shinde cx-aniket-shinde commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Description

Adds an explicit policy evaluation outcome line to the console scan summary, so a policy-level Break Build: true is no longer mistaken for the build result. The new line is printed above the existing Policy Management Violation header, which is kept unchanged:

  • Policies violated, top-level breakBuild true:
    Policy Evaluation Outcome: Block the build. Below are the Policy & Rule Details:
    Policy Management Violation - Break Build Enabled:
    
  • Policies violated, top-level breakBuild false:
    Policy Evaluation Outcome: Allow the build to pass. Below are the Policy & Rule Details:
    Policy Management Violation:
    
  • No rules violated, top-level breakBuild false: Policy Evaluation Outcome: Allow the build to pass.

Per-policy lines, HTML/Markdown summaries and the --ignore-policy error message are unchanged.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

Related Issues

AST-190962

Checklist

  • I have performed a self-review of my code
  • I have added tests (TestPrintPoliciesSummary_PolicyEvaluationOutcome)

🤖 Generated with Claude Code

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cx-aniket-shinde
cx-aniket-shinde requested review from a team and cx-rakesh-kadu November 27, 2026 06:48
…ome messages

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cx-aniket-shinde cx-aniket-shinde changed the title AST-190962 Update policy break build wording in scan summary AST-190962 Show Policy Evaluation Outcome in scan summary Nov 27, 2026
…and move policy details to next line

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@cx-aniket-shinde
cx-aniket-shinde changed the base branch from main to staging December 1, 2026 07:31
@cx-aniket-shinde cx-aniket-shinde changed the title AST-190962 Show Policy Evaluation Outcome in scan summary AST-190962 Show Policy Evaluation Outcome in scan summary (AST-190962) Dec 1, 2026
@cx-aniket-shinde cx-aniket-shinde changed the title AST-190962 Show Policy Evaluation Outcome in scan summary (AST-190962) Show Policy Evaluation Outcome in scan summary (AST-190962) Dec 1, 2026
cx-aniket-shinde and others added 3 commits December 1, 2026 14:25
…ion Outcome lines above them

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e as the outcome

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Comment thread internal/commands/result.go Resolved
Comment thread internal/commands/result.go Resolved
Comment thread internal/commands/result_test.go Resolved
cx-aniket-shinde and others added 2 commits December 2, 2026 12:22
…ut with defer, add break-build-without-violations case

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>

@cx-umesh-waghode cx-umesh-waghode left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Takes care of the three scenarios. Introduces new message and no impact to existing messages.

@cx-aniket-shinde
cx-aniket-shinde merged commit 74d490c into staging Dec 2, 2026
23 of 24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants