From 1581fa8958654c48f555a6904348626ee11d8aff Mon Sep 17 00:00:00 2001 From: tomaioo Date: Mon, 11 May 2026 23:06:45 -0700 Subject: [PATCH] fix(security): missing import for base64 module The b64_encode function uses base64.b64encode() but base64 is not imported in the file. This will cause a NameError at runtime. Signed-off-by: tomaioo <203048277+tomaioo@users.noreply.github.com> --- .sample_configs/implementations.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.sample_configs/implementations.py b/.sample_configs/implementations.py index f95d79adf2..f84abefbe2 100644 --- a/.sample_configs/implementations.py +++ b/.sample_configs/implementations.py @@ -13,6 +13,9 @@ # limitations under the License. # +import base64 + + def read_file(filename): with open(filename, 'rb') as f: file_content = f.read()