diff --git a/chart/gha-runner/templates/deployment.yaml b/chart/gha-runner/templates/deployment.yaml index b88b6a0..1ae2e21 100644 --- a/chart/gha-runner/templates/deployment.yaml +++ b/chart/gha-runner/templates/deployment.yaml @@ -44,9 +44,10 @@ spec: cp -Rf /home/github/.gnupg /home/github-new/.gnupg mkdir -p /home/github-new/.ssh - cp -Rf /secrets/id_rsa /home/github-new/.ssh/id_rsa + cp /secrets/id_rsa /home/github-new/.ssh/id_rsa cp /secrets/id_rsa.pub /home/github-new/.ssh/id_rsa.pub cp /secrets/known_hosts /home/github-new/.ssh/known_hosts + chmod 0600 /home/github-new/.ssh/id_rsa volumeMounts: - name: runtime-secrets