Skip to content

Commit

Permalink
fix[script]: corrected base64 check
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Brodjieski committed Sep 12, 2024
1 parent 1d9522b commit 820c85c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/generate_guidance.py
Original file line number Diff line number Diff line change
Expand Up @@ -1257,6 +1257,7 @@ def generate_script(baseline_name, audit_name, build_path, baseline_yaml, refere
result_string_bytes = f'{result["base64"]}\n'.encode("UTF-8")
result_encoded = base64.b64encode(result_string_bytes)
result['base64'] = result_encoded.decode()
result_value = result['base64']
else:
continue

Expand Down Expand Up @@ -1316,7 +1317,7 @@ def generate_script(baseline_name, audit_name, build_path, baseline_yaml, refere
logmessage "{5} does not apply to this architecture"
/usr/bin/defaults write "$audit_plist" {0} -dict-add finding -bool NO
fi
""".format(
""".format(
rule_yaml["id"],
nist_controls.replace("\n", "\n#"),
check.strip(),
Expand Down

0 comments on commit 820c85c

Please sign in to comment.