From 16e7eedeaaa338345a2f8a6da93c36bc3de1cdaf Mon Sep 17 00:00:00 2001 From: Konstantin Renner Date: Tue, 24 Mar 2026 18:04:20 +0100 Subject: [PATCH] fix: Use python3 for reliable base64 SSH key decoding --- .woodpecker/update-all.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.woodpecker/update-all.yml b/.woodpecker/update-all.yml index 38a2aeb7..6fc3ec59 100644 --- a/.woodpecker/update-all.yml +++ b/.woodpecker/update-all.yml @@ -22,7 +22,7 @@ steps: - pip3 install --break-system-packages proxmoxer requests - ansible-galaxy collection install community.proxmox - mkdir -p ~/.ssh - - printf '%s' "$SSH_PRIVATE_KEY" | base64 -d > ~/.ssh/id_ed25519 + - python3 -c "import base64,os; open(os.path.expanduser('~/.ssh/id_ed25519'),'wb').write(base64.b64decode(os.environ['SSH_PRIVATE_KEY']))" - chmod 600 ~/.ssh/id_ed25519 - printf "Host *\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile /dev/null\n" > ~/.ssh/config - cd ansible