From 070f179ca870e8f920703c39eea4d8e3e81c4aeb Mon Sep 17 00:00:00 2001 From: Eyck-Alexander Jentzsch Date: Sun, 24 Mar 2024 12:02:55 +0100 Subject: [PATCH] restricts ssh permissions --- .gitea/workflows/interp_act.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/interp_act.yaml b/.gitea/workflows/interp_act.yaml index bbe3f88..af7548f 100644 --- a/.gitea/workflows/interp_act.yaml +++ b/.gitea/workflows/interp_act.yaml @@ -12,7 +12,9 @@ jobs: - name: Checkout TGC-COMPLIANCE run: | echo "${{ secrets.ACTRUNNER_PRIVATE_SSHKEY }}" > ssh_key - git clone --recursive -c core.sshCommand="/usr/bin/ssh -i ssh_key -o StrictHostKeyChecking=accept-new" ssh://git@git.minres.com:2221/TGFS/TGC-COMPLIANCE.git + chmod 600 ssh_key + ssh-keyscan git.minres.com >> ~/.ssh/known_hosts + git clone --recursive -c core.sshCommand="/usr/bin/ssh -i ssh_key" ssh://git@git.minres.com:2221/TGFS/TGC-COMPLIANCE.git - name: Build tgc-sim executable run: |