Skip to content

Commit

Permalink
fix gcloud action
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmellos committed Dec 27, 2023
1 parent fa9eed3 commit 1c51978
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/iac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -110,8 +116,8 @@ jobs:
uses: 'google-github-actions/[email protected]'
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/[email protected]
Expand Down

0 comments on commit 1c51978

Please sign in to comment.