mirror of
https://github.com/usnistgov/macos_security.git
synced 2026-02-03 14:03:24 +00:00
Overwriting baseline files #320
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 @robertgendler on GitHub.
Summary
Running one of the scripts with the wrong option and without pointing at a baseline file can result in the baseline being over wrote with a 0 byte file
Steps to reproduce
python3 yaml-to-xls.py -o ../baselines/all_rules.yaml
usage: yaml-to-xls.py [-h] [-o OUTPUT] baseline
yaml-to-xls.py: error: the following arguments are required: baseline
What is the expected correct behavior?
The all_rules or any baseline is not over wrote and since no baseline was defined, the script should quit without writing any data.
@robertgendler commented on GitHub:
Resolved. The generate_guidance will now only build to the build directory.