Skip to content

Commit

Permalink
Use application-default login
Browse files Browse the repository at this point in the history
  • Loading branch information
MikuroXina committed Sep 26, 2023
1 parent dc746be commit 57220f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/staging-apply.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/staging-plan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 57220f4

Please sign in to comment.