From bd7ad0aab3e2255df324dc226f3754d71695c866 Mon Sep 17 00:00:00 2001 From: Joseph Hanson Date: Sun, 28 Jul 2024 19:02:00 -0500 Subject: [PATCH] debug file output --- .forgejo/workflows/build.yaml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.forgejo/workflows/build.yaml b/.forgejo/workflows/build.yaml index 5efbd42..f660e0f 100644 --- a/.forgejo/workflows/build.yaml +++ b/.forgejo/workflows/build.yaml @@ -27,17 +27,18 @@ jobs: run: | mkdir -p $HOME/.ssh chmod 700 $HOME/.ssh - - name: Write ssh key - id: sshkey - uses: https://github.com/timheuer/base64-to-file@v1 - with: - encodedString: "${{ secrets.SSH_USER }}" - fileName: id_ed25519 - fileDir: $HOME/.ssh/ + # - name: Write ssh key + # id: sshkey + # uses: https://github.com/timheuer/base64-to-file@v1 + # with: + # encodedString: "${{ secrets.SSH_USER }}" + # fileName: id_ed25519 + # fileDir: $HOME/.ssh/ - name: Make id_ed25519 user only run: | + # output to null to avoid leaking the key + echo ${{ secrets.SSH_USER }} | base64 -d > $HOME/.ssh/id_ed25519 >/dev/null 2>&1 ls -la $HOME/.ssh - echo ${{ steps.sshkey.outputs.filePath }} chmod 600 $HOME/.ssh/id_ed25519 - uses: https://github.com/cachix/cachix-action@v15 if: ${{ !github.event.pull_request.head.repo.fork }}