docs: formatting and cleanup

This commit is contained in:
DrIOS
2024-06-15 16:27:41 -05:00
parent 919d6cdd08
commit f981e59b43
3 changed files with 9 additions and 30 deletions

2
.gitignore vendored
View File

@@ -16,4 +16,4 @@ markdownissues.txt
node_modules
package-lock.json
Aligned.xlsx
test-gh.ps1
test-gh1.ps1

View File

@@ -6,6 +6,14 @@ The format is based on and uses the types of changes according to [Keep a Change
### Added
- Added `Export-M365SecurityAuditTable` public function to export applicable audit results to a table format.
- Added `Remove-RowsWithEmptyCSVStatus` public function to remove rows with empty status from the CSV file.
- Added `Get-Action` private function to retrieve the action for the test 6.1.2 and 6.1.3 tests.
## [0.1.11] - 2024-06-14
### Added
- Added Get-MFAStatus function to help with auditing mfa for conditional access controls.
### Fixed

View File

@@ -1,29 +0,0 @@
function Format-MissingAction {
[CmdletBinding()]
[OutputType([hashtable])]
param (
[array]$missingActions
)
$actionGroups = @{
"Admin" = @()
"Delegate" = @()
"Owner" = @()
}
foreach ($action in $missingActions) {
if ($action -match "(Admin|Delegate|Owner) action '([^']+)' missing") {
$type = $matches[1]
$actionName = $matches[2]
$actionGroups[$type] += $actionName
}
}
$formattedResults = @{
Admin = $actionGroups["Admin"] -join ', '
Delegate = $actionGroups["Delegate"] -join ', '
Owner = $actionGroups["Owner"] -join ', '
}
return $formattedResults
}