Skip to content

CM-72834 show detection shas - #548

Merged
Ilanlido merged 2 commits into
mainfrom
CM-72834-show-detection-shas
Sep 16, 2026
Merged

Ilanlido merged 2 commits into
mainfrom
CM-72834-show-detection-shas

Conversation

@Ilanlido

Copy link
Copy Markdown
Collaborator

A blocked developer only saw severity counts, so a false positive was unactionable: nothing in the message identified which value tripped the guardrail. List each distinct finding's type and value hash instead, which is what cycode ignore --by-sha takes.

Ilanlido and others added 2 commits September 16, 2026 15:11
A blocked developer only saw severity counts, so a false positive was
unactionable: nothing in the message identified which value tripped the
guardrail. List each distinct finding's type and value hash instead, which
is what `cycode ignore --by-sha` takes.

The hash is safe to display; the value is not. Detections already dropped by
an ignore rule are filtered out upstream in create_local_scan_result, so only
what actually blocked is listed. The two hook messages that interpolated the
summary mid-sentence now put it last, since it spans multiple lines.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
build_violation_summary sat in the shared utils/scan_utils.py but has only
ever had one caller, and it is now shaped for a hook message rather than a
terminal - multi-line, with a value hash per finding. Other scan commands
render through the printers, which already have their own Secret SHA column.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@Ilanlido
Ilanlido enabled auto-merge (squash) September 16, 2026 12:18
@Ilanlido
Ilanlido merged commit f18db6b into main Sep 16, 2026
28 checks passed
@Ilanlido
Ilanlido deleted the CM-72834-show-detection-shas branch September 16, 2026 14:32
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.

2 participants