From 0bacbf7241849c40c661568bb584fc4e5ef44afa Mon Sep 17 00:00:00 2001 From: baalajimaestro Date: Sun, 18 Jun 2023 18:05:15 +0530 Subject: [PATCH] Simplify CI config by using ssh deploy keys Signed-off-by: baalajimaestro --- encrypt.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/encrypt.py b/encrypt.py index b593b7b..3bb4ed8 100644 --- a/encrypt.py +++ b/encrypt.py @@ -30,8 +30,6 @@ BLACKLIST = [ # Env vars to handle creds enc_path = os.environ.get("ENCRYPTED_PATH") enc_repo = os.environ.get("ENCRYPTED_REPO") -enc_repo_user = os.environ.get("ENCRYPTED_REPO_USERNAME") -enc_repo_pass = os.environ.get("ENCRYPTED_REPO_PASSWORD") enc_key = os.environ.get("ENCRYPTION_KEY") # Create our encrypted directory base @@ -45,7 +43,7 @@ os.chdir(enc_path) repo = Repo.init(enc_path) repo.create_remote( "origin", - f"https://{enc_repo_user}:{enc_repo_pass}@github.com/{enc_repo}.git", + f"git@github.com:{enc_repo}.git", ) # Glob the file list of "." starting files and non "." starting files