From 46f352783537d8de3d732c90f711d11c2325cd7c Mon Sep 17 00:00:00 2001 From: jasquat Date: Fri, 20 Jan 2023 15:43:00 -0500 Subject: [PATCH] allow getting the GIT SSH key from an app config so we can set it in the secrets file w/ burnettk --- .../src/spiffworkflow_backend/services/git_service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py b/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py index 7dbb4c089..06c1bda74 100644 --- a/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py +++ b/spiffworkflow-backend/src/spiffworkflow_backend/services/git_service.py @@ -84,6 +84,8 @@ class GitService: repo_path_to_use = current_app.config["BPMN_SPEC_ABSOLUTE_DIR"] if repo_path_to_use is None: raise ConfigurationError("BPMN_SPEC_ABSOLUTE_DIR config must be set") + if current_app.config['GIT_SSH_PRIVATE_KEY']: + os.environ['GIT_SSH_PRIVATE_KEY'] = current_app.config['GIT_SSH_PRIVATE_KEY'] git_username = "" git_email = ""