Skip to content

Commit 833b5bf

Browse files
Merge pull request #7900 from GeorgianaElena/uptime-checks-fix
Attempt to fix uptime checks
2 parents 99849cd + 07056c8 commit 833b5bf

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

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

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -38,17 +38,13 @@ jobs:
3838
- name: Install sops
3939
uses: mdgreenwald/mozilla-sops-action@v1.6.0
4040

41-
# Authenticate with the correct KMS key that sops will use.
42-
- name: Setup sops credentials to decrypt repo secrets
43-
uses: google-github-actions/auth@v3
44-
with:
45-
credentials_json: ${{ secrets.GCP_KMS_DECRYPTOR_KEY }}
46-
4741
- name: ensure uptime checks are set up
4842
run: |
4943
cd terraform/uptime-checks
5044
# Decrypt the GCP ServiceAccount key with permissions to run terraform
51-
sops -d secret/enc-service-account-key.secret.json > service-account-key.json
45+
sops -d \
46+
--gcp-kms-service-account ${{ secrets.GCP_KMS_DECRYPTOR_KEY }} \
47+
secret/enc-service-account-key.secret.json > service-account-key.json
5248
export GOOGLE_APPLICATION_CREDENTIALS=service-account-key.json
5349
# Setup Terraform
5450
terraform init

0 commit comments

Comments
 (0)