Skip to content

Commit fca205f

Browse files
Try passing it the decryptor key directly
1 parent 5afe9d5 commit fca205f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ensure-uptime-checks.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,11 +48,11 @@ jobs:
4848
run: |
4949
cd terraform/uptime-checks
5050
# Decrypt the GCP ServiceAccount key with permissions to run terraform
51-
sops -d secret/enc-service-account-key.secret.json > service-account-key.json
51+
sops -d \
52+
--gcp-kms-service-account ${{ secrets.GCP_KMS_DECRYPTOR_KEY }} \
53+
secret/enc-service-account-key.secret.json > service-account-key.json
5254
export GOOGLE_APPLICATION_CREDENTIALS=service-account-key.json
5355
# Setup Terraform
5456
terraform init
5557
# Run terraform automatically
5658
terraform apply -auto-approve
57-
env:
58-
GCP_KMS_DECRYPTOR_KEY: ${{ secrets.GCP_KMS_DECRYPTOR_KEY }}

0 commit comments

Comments
 (0)