fix: privkey perms
This commit is contained in:
parent
09617848a5
commit
558277b11d
@ -3,6 +3,7 @@
|
|||||||
mkdir -p "$HOME/.ssh"
|
mkdir -p "$HOME/.ssh"
|
||||||
echo "$INPUT_SSH_PRIV" > "$HOME/.ssh/id_ed25519"
|
echo "$INPUT_SSH_PRIV" > "$HOME/.ssh/id_ed25519"
|
||||||
echo "$INPUT_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
|
echo "$INPUT_KNOWN_HOSTS" > "$HOME/.ssh/known_hosts"
|
||||||
|
chmod 600 "$HOME/.ssh/id_ed25519"
|
||||||
|
|
||||||
git remote set-url --push origin "$INPUT_URL"
|
git remote set-url --push origin "$INPUT_URL"
|
||||||
git push origin "main:$GITHUB_REF_NAME"
|
git push origin "main:$GITHUB_REF_NAME"
|
||||||
|
Loading…
Reference in New Issue
Block a user