Skip to content

fix(hdf-converters): warn on unmapped severities instead of silently mapping to impact 0 - #8617

Open
wdower wants to merge 1 commit into
masterfrom
fix/impact-mapping-loud-miss
Open

fix(hdf-converters): warn on unmapped severities instead of silently mapping to impact 0#8617
wdower wants to merge 1 commit into
masterfrom
fix/impact-mapping-loud-miss

Conversation

@wdower

@wdower wdower commented Sep 3, 2026

Copy link
Copy Markdown
Contributor

impactMapping() now distinguishes a mapping miss from a legitimate mapped 0.0: misses warn once per distinct value and default to a conservative 0.5 (caller-overridable) instead of returning 0, which hdf2ckl exported as Not_Applicable — silently removing open findings from checklists. Mirrors hdf-libs' severityToImpactWithAliases convention.

Snyk expected-output fixtures updated: its map lacks 'critical', so those findings move from silent 0 to warned 0.5 (proper 0.9 mapping tracked separately).

Root-cause fix for #8610.

…mapping to impact 0

impactMapping() now distinguishes a mapping miss from a legitimate mapped
0.0: misses warn once per distinct value and default to a conservative
0.5 (caller-overridable) instead of returning 0, which hdf2ckl exported
as Not_Applicable — silently removing open findings from checklists.
Mirrors hdf-libs' severityToImpactWithAliases convention.

Snyk expected-output fixtures updated: its map lacks 'critical', so
those findings move from silent 0 to warned 0.5 (proper 0.9 mapping
tracked separately).

Root-cause fix for #8610.

Signed-off-by: Will <will@dower.dev>
@wdower
wdower requested a review from Amndeep7 September 3, 2026 20:47
@wdower wdower self-assigned this Sep 3, 2026
@sonarqubecloud

sonarqubecloud Bot commented Sep 3, 2026

Copy link
Copy Markdown

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.

1 participant