From ef4a89e0b091bb7a2db1c0b18a5081ccec93be40 Mon Sep 17 00:00:00 2001 From: Lucas Carlos Date: Wed, 13 Nov 2024 21:01:29 +0400 Subject: [PATCH] refactor gcloud auth action --- .github/actions/gcloud-auth/action.yml | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.github/actions/gcloud-auth/action.yml b/.github/actions/gcloud-auth/action.yml index bc765cf8..57cfa03c 100644 --- a/.github/actions/gcloud-auth/action.yml +++ b/.github/actions/gcloud-auth/action.yml @@ -7,17 +7,19 @@ outputs: description: 'Access token from GCLOUD' inputs: - TOKEN_FORMAT: - default: id_token - description: 'The default token format generated when authenticating.' + GCP_WIP: + default: "" + description: 'The workload identity provider.' + PROJECT_ID: + default: "" + description: 'The project associated with the workload identity provider.' runs: using: composite steps: - - id: auth + - id: 'auth' name: 'Authenticate to Google Cloud' - uses: 'google-github-actions/auth@v2' + uses: 'google-github-actions/auth@v2.1.6' with: - token_format: ${{ inputs.TOKEN_FORMAT }} - workload_identity_provider: ${{ env.GCP_WIP }} - service_account: ${{ env.GCP_SA }} + workload_identity_provider: ${{ inputs.GCP_WIP }} + project_id: ${{ inputs.PROJECT_ID }} \ No newline at end of file