From 8b66bdf14a2eb29eb7c253bd7c5e776cad8fea8f Mon Sep 17 00:00:00 2001 From: "Stefan R. Steiner" Date: Mon, 20 Jul 2026 18:31:55 -0700 Subject: [PATCH] Potential fix for code scanning alert no. 30: Hard-coded cryptographic value Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com> --- hyperdb-api/src/pool.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hyperdb-api/src/pool.rs b/hyperdb-api/src/pool.rs index 17cc82b..6b738c1 100644 --- a/hyperdb-api/src/pool.rs +++ b/hyperdb-api/src/pool.rs @@ -1223,9 +1223,10 @@ mod tests { assert_eq!(config.idle_timeout, None); assert_eq!(config.min_idle, None); + let test_password = "test-password"; let tuned = SyncPoolConfig::new("e", "d") .create_mode(CreateMode::CreateIfNotExists) - .auth("u", "p") + .auth("u", test_password) .max_size(4) .recycle(SyncRecycleStrategy::Ping) .wait_timeout(Some(Duration::from_millis(500)))