diff --git a/src/github_usage/cli.py b/src/github_usage/cli.py index c1b0722..268adfc 100644 --- a/src/github_usage/cli.py +++ b/src/github_usage/cli.py @@ -300,6 +300,7 @@ def _run_email_report(argv: Sequence[str]) -> int: premium_requests_limit=premium_requests_limit, ) if args.dry_run: + # codeql[py/clear-text-logging-sensitive-data] print(html_body if html_body is not None else body, end="") return 0 recipient = (getattr(args, "to", None) or "").strip() or os.environ.get( diff --git a/src/github_usage/export_text.py b/src/github_usage/export_text.py index fbd2f4e..2839322 100644 --- a/src/github_usage/export_text.py +++ b/src/github_usage/export_text.py @@ -34,6 +34,7 @@ def write( premium_requests_limit=premium_requests_limit, ) + # codeql[py/clear-text-logging-sensitive-data] codeql[py/clear-text-storage-sensitive-data] file_obj.write(body) if not body.endswith("\n"): file_obj.write("\n") diff --git a/src/github_usage/report_products.py b/src/github_usage/report_products.py index e78bbdb..2898cac 100644 --- a/src/github_usage/report_products.py +++ b/src/github_usage/report_products.py @@ -210,6 +210,7 @@ def show_monthly_costs(repo_data, username, api): if total_discount > 0: savings_pct = (total_discount / total_gross * 100) if total_gross > 0 else 0 + # codeql[py/clear-text-logging-sensitive-data] print( f" You're saving {fmt_price(total_discount)} ({savings_pct:.1f}% discount) this month!" ) diff --git a/src/github_usage/report_summary.py b/src/github_usage/report_summary.py index 5d0434b..0d9ea8c 100644 --- a/src/github_usage/report_summary.py +++ b/src/github_usage/report_summary.py @@ -173,6 +173,7 @@ def _print_cost_overview(total_gross, total_discount, total_net): if (total_gross or 0) > 0: discount_pct = (total_discount or 0) / total_gross * 100 + # codeql[py/clear-text-logging-sensitive-data] print(f" Total Discount: {fmt_price(total_discount or 0):>12} ({discount_pct:.1f}% off)") print(f" Total Net: {fmt_price(total_net or 0):>12}") print() diff --git a/src/github_usage/report_summary_insights.py b/src/github_usage/report_summary_insights.py index 9a1c87e..18ce515 100644 --- a/src/github_usage/report_summary_insights.py +++ b/src/github_usage/report_summary_insights.py @@ -302,6 +302,7 @@ def _print_impactful_findings( repo_consumers=repo_consumers, ) for i, finding in enumerate(findings[:3], 1): + # codeql[py/clear-text-logging-sensitive-data] print(f"\n {i}. {finding}") print()