Use intermediate env var for Pulumi passphrase (#4)

Addresses security concern where secrets were directly interpolated in
run commands. Following GitHub's security best practices, the secret is
now passed through an intermediate environment variable before being
written to the file.

This maintains compatibility with the existing Makefile workflow while
reducing the risk of accidental secret disclosure.
This commit is contained in:
adam jones 2025-10-01 01:08:42 +01:00 • committed by GitHub
commit 5b2b01db21
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -49,6 +49,8 @@ jobs:
credentials_json: ${{ secrets.GCP_PROD_SERVICE_ACCOUNT_KEY }}
- name: Deploy to Production
env:
PULUMI_PASSPHRASE: ${{ secrets.PULUMI_PROD_PASSPHRASE }}
run: |
echo "${{ secrets.PULUMI_PROD_PASSPHRASE }}" > passphrase.prod.txt
echo "$PULUMI_PASSPHRASE" > passphrase.prod.txt
make up