From 57220f4dcfd0c4cd5fa9e25cf734fb32021fe8fb Mon Sep 17 00:00:00 2001 From: MikuroXina Date: Tue, 26 Sep 2023 22:55:14 +0900 Subject: [PATCH] Use application-default login --- .github/workflows/staging-apply.yaml | 6 ++++++ .github/workflows/staging-plan.yml | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/.github/workflows/staging-apply.yaml b/.github/workflows/staging-apply.yaml index 7346ac61..0fd7203f 100644 --- a/.github/workflows/staging-apply.yaml +++ b/.github/workflows/staging-apply.yaml @@ -78,6 +78,12 @@ jobs: workload_identity_provider: "projects/1065320521129/locations/global/workloadIdentityPools/ci-pool/providers/ci-provider" service_account: "staging-deploy-from-github-act@pulsate-staging-400117.iam.gserviceaccount.com" + - name: Set up Cloud SDK + uses: "google-github-actions/setup-gcloud@v1" + - name: Enable application-default login + run: | + gcloud auth application-default login + - name: Upload Configuration uses: "hashicorp/tfc-workflows-github/actions/upload-configuration@v1.0.4" id: apply-upload diff --git a/.github/workflows/staging-plan.yml b/.github/workflows/staging-plan.yml index 9f918190..53066ba5 100644 --- a/.github/workflows/staging-plan.yml +++ b/.github/workflows/staging-plan.yml @@ -29,6 +29,12 @@ jobs: workload_identity_provider: "projects/1065320521129/locations/global/workloadIdentityPools/ci-pool/providers/ci-provider" service_account: "staging-deploy-from-github-act@pulsate-staging-400117.iam.gserviceaccount.com" + - name: Set up Cloud SDK + uses: "google-github-actions/setup-gcloud@v1" + - name: Enable application-default login + run: | + gcloud auth application-default login + - name: Upload Configuration uses: "hashicorp/tfc-workflows-github/actions/upload-configuration@v1.0.4" id: "plan-upload"