From 49a034d6d75f53a5d58b3485b003b35e8d182fc1 Mon Sep 17 00:00:00 2001 From: Matej Focko Date: Mon, 1 Jul 2024 11:11:17 +0200 Subject: [PATCH] feat(user/git): allow signing with SSH key Signed-off-by: Matej Focko --- roles/user/git/templates/gitconfig | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/roles/user/git/templates/gitconfig b/roles/user/git/templates/gitconfig index 38ecf82..29fa1cb 100644 --- a/roles/user/git/templates/gitconfig +++ b/roles/user/git/templates/gitconfig @@ -33,8 +33,12 @@ cmd = code --wait --diff $LOCAL $REMOTE [gpg] + # format = ssh program = gpg2 +[gpg "ssh"] + allowedSignersFile = /home/{{ target_user }}/.ssh/allowed_signers + [init] defaultBranch = main