audit-labs/audit-tools

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

clone: git clone https://gitbay.org/audit-labs/audit-tools.git

2ff4dac3ece5f4504fc4d3c59775078f3e42a9f8

unsigned

author: github-actions <41898282+github-actions[bot]@users.noreply.github.com> · 2025-12-15T01:45:51Z

Commit from GitHub Actions (Ruff)
 applications/aws/aws_password_policy/evaluate_policy.py | 11 +++--------
 1 file changed, 3 insertions(+), 8 deletions(-)

diff --git a/applications/aws/aws_password_policy/evaluate_policy.py b/applications/aws/aws_password_policy/evaluate_policy.py
index a0d22ac..d49dffd 100644
--- a/applications/aws/aws_password_policy/evaluate_policy.py
+++ b/applications/aws/aws_password_policy/evaluate_policy.py
@@ -151,16 +151,10 @@ def main() -> None:
         result = evaluate(expected, actual, typ)
 
         # Normalise booleans for nicer CSV output
-        actual_str = (
-            str(actual).lower()
-            if isinstance(actual, bool)
-            else str(actual)
-        )
+        actual_str = str(actual).lower() if isinstance(actual, bool) else str(actual)
         expected_str = "" if expected is None else str(expected).lower()
 
-        csv_rows.append(
-            [rule_no, friendly, expected_str, actual_str, result]
-        )
+        csv_rows.append([rule_no, friendly, expected_str, actual_str, result])
 
     # --------------------------------------------------------------
     # 3. Write the CSV file (timestamped)
@@ -180,4 +174,5 @@ def main() -> None:
 
 if __name__ == "__main__":
     import datetime  # imported here to keep the top of file tidy
+
     main()