From 26b38111468c77bab44c2c2ededbe6c5718f213a Mon Sep 17 00:00:00 2001 From: Gilbertsoft <25326036+gilbertsoft@users.noreply.github.com> Date: Sat, 2 Apr 2022 18:29:48 +0200 Subject: [PATCH] [TASK] Properly handle secrets (#314) --- .github/workflows/continuous-integration.yml | 3 +++ .github/workflows/deployment.yml | 5 +++++ .github/workflows/manual-deployment.yml | 3 +++ 3 files changed, 11 insertions(+) diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 829ecb42..d05e55d5 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -546,3 +546,6 @@ jobs: - tests if: ${{ github.event_name == 'push' }} uses: ./.github/workflows/deployment.yml + secrets: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + SSH_PASSPHRASE: ${{ secrets.SSH_PASSPHRASE }} diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 532e62a1..a8c529d7 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -13,6 +13,11 @@ on: default: '2' required: false type: string + secrets: + SSH_PRIVATE_KEY: + required: true + SSH_PASSPHRASE: + required: true jobs: print_inputs: diff --git a/.github/workflows/manual-deployment.yml b/.github/workflows/manual-deployment.yml index 8c866625..bd0d294d 100644 --- a/.github/workflows/manual-deployment.yml +++ b/.github/workflows/manual-deployment.yml @@ -25,3 +25,6 @@ jobs: with: php_version: ${{ github.event.inputs.php_version }} composer_version: ${{ github.event.inputs.composer_version }} + secrets: + SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }} + SSH_PASSPHRASE: ${{ secrets.SSH_PASSPHRASE }}