Skip to content

fix(cli): hide the policy violation strategy when it is advisory - #3761

Closed
migmartri wants to merge 1 commit into
chainloop-dev:mainfrom
migmartri:fix/hide-advisory-policy-strategy
Closed

migmartri wants to merge 1 commit into
chainloop-dev:mainfrom
migmartri:fix/hide-advisory-policy-strategy

Conversation

@migmartri

@migmartri migmartri commented Oct 31, 2026 •

Copy link
Copy Markdown
Member

The attestation status and workflow run describe outputs showed "Policy violation strategy: ADVISORY" when the organization does not enforce policies. That is confusing when individual policies or policy groups are configured as gates, because those still block the push. The row is now only shown when the strategy is ENFORCED.

AI disclosure: this change was produced with assistance from Claude Code.

Closes #3762

View guided diff

@chainloop-platform

chainloop-platform Bot commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

PR validation — ⚠️ 1 failing

Status Policy Material Messages
✅ Passed pr-min-approvals pr-info -
✅ Passed pr-description-required pr-info -
⚠️ Failed pr-user-story-linked pr-info PR/MR #3761 does not reference a user story or issue in title, description, or branch 'fix(cli): hide the policy violation strategy when it is advisory'. Expected patterns: ["(?i)[A-Z]+-[0-9]+", "#[0-9]+", "(?i)gh-[0-9]+", "(?i)\\[[A-Z]+-[0-9]+\\]"]

View attestation ↗

AI Session Checks — ⚠️ no AI session found

Missing AI Coding Sessions

This organization requires every PR to be backed by a Chainloop Trace AI coding session, and none was found for this one.

Please make sure the AI coding session evidence has been sent by the Chainloop CLI, or add the skip-ai-session label to this PR to bypass this check.

Learn more about Chainloop Trace.

Security Checks — ✅ 5 passing

✅ Nothing this change touches re-opens a recorded security fix.

View in Chainloop ↗ · How this works ↗
✅ Nothing this change touches re-opens a recorded security fix.

View in Chainloop ↗ · How this works ↗
✅ Nothing this change touches re-opens a recorded security fix.

View in Chainloop ↗ · How this works ↗
✅ Nothing this change touches re-opens a recorded security fix.

View in Chainloop ↗ · How this works ↗
✅ Nothing this change touches re-opens a recorded security fix.

View in Chainloop ↗ · How this works ↗
✅ Nothing this change touches re-opens a recorded security fix.

View in Chainloop ↗ · How this works ↗
✅ Nothing this change touches re-opens a recorded security fix.

View in Chainloop ↗ · How this works ↗
✅ Nothing this change touches re-opens a recorded security fix.

View in Chainloop ↗ · How this works ↗

✅ secret-scan

Status Policy Messages
✅ Passed secrets-detection -

✅ sast-scan

Status Policy Messages
✅ Passed owasp-top10-2025 -
✅ Passed sast -
✅ Passed cwe-top25 -
✅ Passed cwe-top26-40-cusp -
Scans not applied (3)
Scan Reason
vulnerability-scan no manifest/lockfile changed
github-actions-scan no workflow files changed
iac-scan no IaC files changed

View attestation ↗


Powered by Chainloop and Chainloop Trace

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

No issues found across 2 files

View guided diff | Re-trigger cubic

@migmartri
migmartri requested a review from a team October 31, 2026 20:53
The ADVISORY value is misleading when individual policies are configured
as gates. Only show the strategy row when it is enforced, in both
attestation status and workflow run describe.

Assisted-by: Claude Code
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>

Chainloop-Trace-Sessions: 44016fe6-1a31-4253-934f-ca70bc4b469d
@migmartri
migmartri force-pushed the fix/hide-advisory-policy-strategy branch from 15b7d59 to a0f2d28 Compare November 5, 2026 16:23
@migmartri migmartri closed this Nov 6, 2026
@migmartri
migmartri deleted the fix/hide-advisory-policy-strategy branch November 6, 2026 17:09
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.

Allow enabling policy enforcement at the workflow contract level

3 participants