From 558277b11d4df8676bed88dc3f3a1aa6897f9d23 Mon Sep 17 00:00:00 2001 From: ange Date: Mon, 18 Nov 2024 10:44:56 +0000 Subject: [PATCH] fix: privkey perms --- mirror.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/mirror.sh b/mirror.sh index 153e410..ab195d6 100755 --- a/mirror.sh +++ b/mirror.sh @@ -3,6 +3,7 @@ mkdir -p "$HOME/.ssh" echo "$INPUT_SSH_PRIV" > "$HOME/.ssh/id_ed25519" echo "$INPUT_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts" +chmod 600 "$HOME/.ssh/id_ed25519" git remote set-url --push origin "$INPUT_URL" git push origin "main:$GITHUB_REF_NAME"