feat(workload): print the compliance score on successful scans, not only in threshold failures

Open Beginner friendly
#6,052 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
72/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
go
Domain
cli, security

Research direction

Start at the workload scan command and trace the existing compliance-threshold failure output. Add coverage for both successful and failing scans, with and without --compliance-threshold, and verify that each scan ends with the per-framework or aggregate compliance score.

Written by the indexing model from the issue text.

Description

enhancement

🤖 Generated by the Daily AI Engineer

Problem

ksail workload scan --compliance-threshold <n> prints the measured compliance score only when the gate fails (security scan failed: compliance score 94.99% is below threshold 100.00%). On a passing run the score is not printed at all — neither in the summary tables nor as a closing line.

This makes threshold ratcheting needlessly awkward in CI: the score is environment-dependent (documented in devantler-tech/platform AGENTS.md — the same binary/manifests score differently on Linux runners vs macOS), so operators must learn the CI-side score to place the floor. Today the only way is to push a deliberate threshold-100 failing run and read the error (exactly what platform#2584 had to do). It also hides gradual posture drift: a repo can decay from 99% to 86% with a floor of 85 and no run output ever shows it.

Proposed direction

Always print one line with the per-framework (or aggregate) compliance score at the end of the scan — on success and failure alike, e.g. ✔ compliance score 98.87% (threshold 85.00%). No new flag needed; it is a pure output addition. Cover both states in tests (with/without --compliance-threshold).

Rough size

S.

Dominant language
Go
Stars
165
Forks
13
Avg merge
4h 17m
Merged PRs (30d)
362

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from devantler-tech/ksail

All issues in devantler-tech/ksail

Similar issues

More Go issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.