From c7b7570bbd0c64472032122a7c6d8a31150be91d Mon Sep 17 00:00:00 2001 From: Brendan McDevitt Date: Thu, 27 Mar 2025 17:10:40 -0500 Subject: [PATCH] update collect job to use ssh key --- .forgejo/workflows/daily-collect.yaml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/daily-collect.yaml b/.forgejo/workflows/daily-collect.yaml index 3e782d4..34d55ed 100644 --- a/.forgejo/workflows/daily-collect.yaml +++ b/.forgejo/workflows/daily-collect.yaml @@ -12,8 +12,16 @@ jobs: runs-on: ubuntu-latest steps: + - name: Setup SSH + run: | + mkdir -p ~/.ssh + echo "${{ secrets.TOKEN_NAME }}" > ~/.ssh/id_rsa + chmod 600 ~/.ssh/id_rsa + ssh-keyscan git.mcdevitt.tech >> ~/.ssh/known_hosts + - name: Checkout repository - uses: actions/checkout@v4 + run: | + git clone git@git.mcdevitt.tech:bpmcdevitt/github_poc_collector.git . - name: Setup Rust uses: actions-rs/toolchain@v1