From 87bfe23b744526bfa345612a18f1635c325ed9e4 Mon Sep 17 00:00:00 2001 From: "pixeebot[bot]" <104101892+pixeebot[bot]@users.noreply.github.com> Date: Tue, 12 Mar 2024 03:26:35 +0000 Subject: [PATCH] Sandbox Process Creation --- hooks/post_gen_project.py | 3 ++- {{ cookiecutter.project_slug }}/pyproject.toml | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/hooks/post_gen_project.py b/hooks/post_gen_project.py index 6d65292..598d4b3 100644 --- a/hooks/post_gen_project.py +++ b/hooks/post_gen_project.py @@ -1,4 +1,5 @@ #!/usr/bin/env python import subprocess +from security import safe_command -subprocess.run(['git', 'init']) +safe_command.run(subprocess.run, ['git', 'init']) diff --git a/{{ cookiecutter.project_slug }}/pyproject.toml b/{{ cookiecutter.project_slug }}/pyproject.toml index 7fa72af..daf3d30 100644 --- a/{{ cookiecutter.project_slug }}/pyproject.toml +++ b/{{ cookiecutter.project_slug }}/pyproject.toml @@ -14,6 +14,7 @@ description = "{{ cookiecutter.project_description }}" dependencies = [ "codemodder>=0.81.0", "libcst~=1.1.0", + "security==1.2.1", ] keywords = ["custom", "codemod", "codemods", "security", "fix", "fixes"] classifiers = [