mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
rules/os/os_library_validation_enabled.yaml fails with: "run_fix:242: command not found: This" #233
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 @marcindulak on GitHub.
Summary
rules/os/os_library_validation_enabled.yaml fails with: "run_fix:242: command not found: This"
Steps to reproduce
On a fresh system, execute the compliance script generated from baseline (e.g. https://github.com/usnistgov/macos_security/blob/main/baselines/cis_lvl2.yaml) which includes this rule.
Operating System version
What is the current bug behavior?
What is the expected correct behavior?
No error.
Relevant logs and/or screenshots
Output of checks
Possible fixes
The issue is that the fix is set as
[source,bash]06cc0d2614/rules/os/os_library_validation_enabled.yaml (L12-L16)To fix, treat the comment as text:
The issue appears to be present only in
rules/os/os_library_validation_enabled.yaml@robertgendler commented on GitHub:
The issue appears to be because for some reason we included the
[source,bash]. This appears to be fixed in all other branches. Feel free to pull and build off of the OS branches for the most up to date fixes on issues.@marcindulak commented on GitHub:
Thanks, I see this was fixed in
1bea03ade9.