From 74ce6dcc6c6350f7d768b31b668016b443986f12 Mon Sep 17 00:00:00 2001 From: Dan D'Avella Date: Fri, 28 Jun 2024 09:11:44 -0400 Subject: [PATCH 1/2] Remove leftover print statement (#26) --- src/security/safe_command/api.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/security/safe_command/api.py b/src/security/safe_command/api.py index 93249b7..5148873 100644 --- a/src/security/safe_command/api.py +++ b/src/security/safe_command/api.py @@ -637,7 +637,6 @@ def check(command: ValidCommand, restrictions: ValidRestrictions, **kwargs) -> N # Check if the executable is set by the Popen kwargs (either executable or shell) # Executable takes precedence over shell. see subprocess.py line 1593 executable_path = _resolve_executable_path(kwargs.get("executable"), venv) - print(executable_path) shell = ( executable_path.name in COMMON_SHELLS if executable_path From e3f18bd045b7cf709f51cad4e1df474a65141dbb Mon Sep 17 00:00:00 2001 From: Kevin Burnett <18027+burnettk@users.noreply.github.com> Date: Fri, 28 Jun 2024 13:19:45 +0000 Subject: [PATCH 2/2] Update README.md, typo (#25) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0e8690b..e0aac2f 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ # security Security toolkit for the Python community -This library includes a number of code security controls for various application security vulnerability categories. It can be used directly by programmers, but you may have been introduced to it by having it directly added to you code by automation. +This library includes a number of code security controls for various application security vulnerability categories. It can be used directly by programmers, but you may have been introduced to it by having it directly added to your code by automation. Many of the APIs provided are meant to be drop-in replacements that either offer more secure defaults, harden against common attacks, or at least surface the security questions developers should answer when using risky APIs.