Fix: pass AUR_SSH_KEY via env var to avoid secret masking corruption

main
Sean Doran 2026-02-27 11:52:43 -05:00
parent 2b618b2fb0
commit 46f47d89a7
No known key found for this signature in database
GPG Key ID: A9D7D25CD95E8579
1 changed files with 3 additions and 1 deletions

View File

@ -62,9 +62,11 @@ jobs:
EOF EOF
- name: Set up SSH for AUR - name: Set up SSH for AUR
env:
AUR_SSH_KEY: ${{ secrets.AUR_SSH_KEY }}
run: | run: |
mkdir -p ~/.ssh mkdir -p ~/.ssh
printf '%s' "${{ secrets.AUR_SSH_KEY }}" | base64 -d > ~/.ssh/aur printf '%s' "$AUR_SSH_KEY" | base64 -d > ~/.ssh/aur
chmod 600 ~/.ssh/aur chmod 600 ~/.ssh/aur
ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts ssh-keyscan aur.archlinux.org >> ~/.ssh/known_hosts
ssh -i ~/.ssh/aur -o StrictHostKeyChecking=no -T aur@aur.archlinux.org || true ssh -i ~/.ssh/aur -o StrictHostKeyChecking=no -T aur@aur.archlinux.org || true