mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 05:53:24 +00:00
compliance_count function in generated guidance script does not correctly count findings #276
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @bernstei on GitHub.
From what I can tell,
compliance_counttries to count the number of findings, but it just looks through the output ofPlistBuddy -clooking for true or false, without checking if those are for thefindingorexemptfields:932a51f3e8/scripts/generate_guidance.py (L671)As a result, it will miscount findings.
@golbiga commented on GitHub:
Thanks again, it's now checking for
"finding = false"so it will no longer count theexemptfields.@bernstei commented on GitHub:
Thanks for the quick response.