From 689921d78d7514927ed87e58d088b5e7b395d218 Mon Sep 17 00:00:00 2001 From: MickaelK Date: Fri, 10 Nov 2023 22:41:43 +1100 Subject: [PATCH] fix (CI): get rid of PAT in CI --- .github/workflows/ci.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 501d529b8..c01506355 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -59,9 +59,11 @@ jobs: persist-credentials: false - name: Clone test repo env: - PAT: ${{ secrets.PAT }} + DEPLOY_KEY: ${{ secrets.DEPLOY_KEY_FILESTASH_TEST }} run: | - git clone --depth 1 https://mickael-kerjean:$PAT@github.com/mickael-kerjean/filestash-test test + mkdir ~/.ssh/ && echo $DEPLOY_KEY > ~/.ssh/id_ed25519 && chmod 600 ~/.ssh/id_ed25519 + ssh-keyscan github.com > ~/.ssh/known_hosts + GIT_SSH_COMMAND="ssh -i ~/.ssh/id_ed25519" git clone --depth 1 git@github.com:mickael-kerjean/filestash-test.git test chmod -R 777 ./test/ - uses: actions/upload-artifact@master with: