Skip to content

Commit

Permalink
[TASK] Properly handle secrets (#314)
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertsoft authored Apr 2, 2022
1 parent 385d345 commit 26b3811
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
5 changes: 5 additions & 0 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ on:
default: '2'
required: false
type: string
secrets:
SSH_PRIVATE_KEY:
required: true
SSH_PASSPHRASE:
required: true

jobs:
print_inputs:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/manual-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 26b3811

Please sign in to comment.