allow getting the GIT SSH key from an app config so we can set it in the secrets file w/ burnettk

This commit is contained in:
jasquat 2023-01-20 15:43:00 -05:00
parent 9bf8bc505d
commit 46f3527835
1 changed files with 2 additions and 0 deletions

View File

@ -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 = ""