Skip to content

Commit

Permalink
fix (CI): get rid of PAT in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-kerjean committed Nov 10, 2023
1 parent 0ac2bde commit 689921d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 689921d

Please sign in to comment.