mirror of
https://github.com/Yamato-Security/WELA.git
synced 2026-10-23 22:53:00 +02:00
Retain policy prerequisites and evidence in apply results
This commit is contained in:
1 parent
ee7a0e2216
commit
98d37fbf37
3 files changed
+22
-2
No files matched your search
@@ -240,10 +240,14 @@ function Invoke-WelaAuditProfilePlan {
|
||||
} catch { $status = 'Failed'; $errorText = $_.Exception.Message; $effective = $null }
|
||||
} else { $status = 'Skipped' }
|
||||
}
|
||||
[pscustomobject]@{ id = $policy.id; guid = $policy.guid; mode = $policy.mode; beforeMask = $initial; targetMask = $target; effectiveMask = $effective; status = $status; error = $errorText }
|
||||
[pscustomobject]@{
|
||||
id = $policy.id; guid = $policy.guid; mode = $policy.mode
|
||||
beforeMask = $initial; targetMask = $target; effectiveMask = $effective; status = $status; error = $errorText
|
||||
prerequisites = $policy.prerequisites; evidence = $policy.evidence; sourceIds = @($policy.sourceIds)
|
||||
}
|
||||
}
|
||||
[pscustomobject]@{
|
||||
profile = $Plan.profile; scope = $Plan.scope; role = $Plan.role; build = $Plan.build
|
||||
profile = $Plan.profile; version = $Plan.version; scope = $Plan.scope; role = $Plan.role; build = $Plan.build
|
||||
schemaSha256 = $Plan.schemaSha256; provenance = $Plan.provenance
|
||||
success = (@($results | Where-Object { $_.status -eq 'Failed' }).Count -eq 0)
|
||||
results = @($results)
|
||||
|
||||
Reference in new issue
Block a user