From 5d2736491a1a97ecc170788994e33d45605f6921 Mon Sep 17 00:00:00 2001 From: fukusuket <41001169+fukusuket@users.noreply.github.com> Date: Fri, 14 Mar 2025 23:05:47 +0900 Subject: [PATCH] update --- WELA.ps1 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/WELA.ps1 b/WELA.ps1 index 4f3095af..cac63b03 100644 --- a/WELA.ps1 +++ b/WELA.ps1 @@ -1,17 +1,17 @@ function Get-ApplicableRules { param ( - [string]$outputPath, - [string]$jsonPath + [string]$outputFilePath, + [string]$jsonFilePath ) $extractedGuids = [System.Collections.Generic.HashSet[string]]::new() - Get-Content -Path $outputPath | Select-String -NotMatch "No Auditing" | ForEach-Object { + Get-Content -Path $outputFilePath | Select-String -NotMatch "No Auditing" | ForEach-Object { if ($_ -match '{(.*?)}') { [void]$extractedGuids.Add($matches[1]) } } - $jsonContent = Get-Content -Path $jsonPath -Raw | ConvertFrom-Json + $jsonContent = Get-Content -Path $jsonFilePath -Raw | ConvertFrom-Json foreach ($rule in $jsonContent) { $rule | Add-Member -MemberType NoteProperty -Name "applicable" -Value $false foreach ($guid in $rule.subcategory_guids) {