Skip to content

Commit

Permalink
Test passing secrets as environment variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ctmbl committed May 17, 2024
1 parent b45155a commit ab53aef
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/deploy_dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit ab53aef

Please sign in to comment.