From ab53aefa566c66831703e095a580b47e4a2e97db Mon Sep 17 00:00:00 2001 From: ctmbl Date: Fri, 17 May 2024 20:01:14 +0200 Subject: [PATCH] Test passing secrets as environment variables --- .github/workflows/deploy_dev.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy_dev.yml b/.github/workflows/deploy_dev.yml index bd8cc45..3f4d10b 100644 --- a/.github/workflows/deploy_dev.yml +++ b/.github/workflows/deploy_dev.yml @@ -13,6 +13,8 @@ jobs: runs-on: ubuntu-latest # Force to respect the 'dev-deployment' environment rules, in our case 1 maintainer approval environment: deployment-dev + env: + SSH_KNOWN_HOSTS: ${{ secrets.SSH_KNOWN_HOSTS }} steps: # Checkout repo AND ITS SUBMODULES - name: 🛒 Checkout @@ -35,7 +37,7 @@ jobs: chmod 600 ~/.ssh/id_rsa - name: 🔐 Load Host Keys run: | - echo "${{ secrets.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts + echo "${{ env.SSH_KNOWN_HOSTS }}" > ~/.ssh/known_hosts - name: 🔑 Populate Key run: | echo "${{ secrets.PRIVATE_SSH_KEY }}" > ~/.ssh/id_rsa