audit-labs/audit-tools

A collection of scripts, queries, and other goodies you can use in an audit. audit automation compliance evidence scripts

Commit 1e60e2ba9f

1e60e2ba9fc688f814efb391276ae8571c896f39

parent: 599361577d

Unsigned

github-actions <41898282+github-actions[bot]@users.noreply.github.com> · 2025-12-15 01:45 UTC

Commit from GitHub Actions (Ruff)

Layout: unified · split

applications/aws/aws_password_policy/evaluate_policy.py +3 −8
@@ -151,16 +151,10 @@ def main() -> None:
151151 result = evaluate(expected, actual, typ)
152152
153153 # Normalise booleans for nicer CSV output
154 actual_str = (
155 str(actual).lower()
156 if isinstance(actual, bool)
157 else str(actual)
158 )
154 actual_str = str(actual).lower() if isinstance(actual, bool) else str(actual)
159155 expected_str = "" if expected is None else str(expected).lower()
160156
161 csv_rows.append(
162 [rule_no, friendly, expected_str, actual_str, result]
163 )
157 csv_rows.append([rule_no, friendly, expected_str, actual_str, result])
164158
165159 # --------------------------------------------------------------
166160 # 3. Write the CSV file (timestamped)
@@ -180,4 +174,5 @@ def main() -> None:
180174
181175if __name__ == "__main__":
182176 import datetime # imported here to keep the top of file tidy
177
183178 main()