Skip to content

Commit

Permalink
Fixed: subTechniques not always returned as array
Browse files Browse the repository at this point in the history
  • Loading branch information
Konverto-MartinGasser committed Jun 24, 2024
1 parent 4b88e8a commit 9aa6d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/public/Convert-SentinelARYamlToArm.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ function Convert-SentinelARYamlToArm {
}
# Minimum API version that supports MITRE sub-techniques
if (([datetime]::parseexact($APIVersion, 'yyyy-MM-dd-preview', $null)) -ge [datetime]"2023-12-01") {
$ARMTemplate.subTechniques = $ARMTemplate.techniques | Where-Object { $_ -match "(T\d{4})\.\d{3}" }
$ARMTemplate.subTechniques = @($ARMTemplate.techniques | Where-Object { $_ -match "(T\d{4})\.\d{3}" })
}

# Remove any sub-techniques from the techniques array
Expand Down

0 comments on commit 9aa6d58

Please sign in to comment.