From 1c519784a278cb6bbb0a4ff430c55babbd78fdf5 Mon Sep 17 00:00:00 2001 From: Lucas Mellos Carlos Date: Wed, 27 Dec 2023 14:49:06 -0300 Subject: [PATCH] fix gcloud action --- .github/workflows/iac.yml | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/iac.yml b/.github/workflows/iac.yml index 32f5d29c..f4184bdd 100644 --- a/.github/workflows/iac.yml +++ b/.github/workflows/iac.yml @@ -34,6 +34,16 @@ on: type: string default: '' description: An app registered on teleport to authenticate using proxy + GCP_WIP: + required: false + type: string + default: '' + description: GCP Workload Identity Provider + PROJECT_ID: + required: false + type: string + default: '' + description: GCP Project ID secrets: PRIVATE_SSH_KEY_TFMODULES: required: true @@ -43,10 +53,6 @@ on: required: true TF_VAR_DO_TOKEN: required: false - GCP_SA: - required: false - GCP_WIP: - required: false GH_APPROVAL_APP_ID: required: false GH_APPROVAL_APP_PKEY: @@ -110,8 +116,8 @@ jobs: uses: 'google-github-actions/auth@v2.0.0' if: inputs.GCP_ENV == true with: - workload_identity_provider: ${{ secrets.GCP_WIP }} - service_account: ${{ secrets.GCP_SA }} + workload_identity_provider: ${{ inputs.GCP_WIP }} + project_id: ${{ inputs.PROJECT_ID }} - name: Sops Binary Installer uses: mdgreenwald/mozilla-sops-action@v1.5.0