From 980ed41f840a375240225f3ae1fa7a963d1df6a0 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Mon, 13 Oct 2025 18:13:17 +0900 Subject: [PATCH] fix: ensure score calculations in WELA.ps1 return integer values --- WELA.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WELA.ps1 b/WELA.ps1 index 235919e0..afab0c1e 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -5248,7 +5248,7 @@ function Export-MitreHeatmap { $info = $tagMapping[$techniqueId] $titlesCount = $info.titles.Count $score = if ($titlesCount -gt 0) { - [math]::Round(($info.applicableCount / $titlesCount) * 100, 2) + [int][math]::Round(($info.applicableCount / $titlesCount) * 100, 2) } else { 0 } @@ -5257,7 +5257,7 @@ function Export-MitreHeatmap { } if ($UseIdealCount) { - $score = [math]::Round(($info.idealCount / $titlesCount) * 100, 2) + $score = [int][math]::Round(($info.idealCount / $titlesCount) * 100, 2) } $techniques += @{