diff --git a/.github/workflows/test-actions.yaml b/.github/workflows/test-actions.yaml index bbeae00..c2322eb 100644 --- a/.github/workflows/test-actions.yaml +++ b/.github/workflows/test-actions.yaml @@ -18,3 +18,13 @@ jobs: steps: - uses: actions/checkout@v3 - uses: ./gar-auth + with: + GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }} + GCP_SERVICE_ACCOUNT_EMAIL: ${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }} + create_credentials_file: true + + - uses: ./gar-auth + with: + GCP_WORKLOAD_IDENTITY_PROVIDER: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER }} + GCP_SERVICE_ACCOUNT_EMAIL: ${{ vars.GCP_SERVICE_ACCOUNT_EMAIL }} + create_credentials_file: false diff --git a/gar-auth/action.yaml b/gar-auth/action.yaml index 3fa1e27..270bc59 100644 --- a/gar-auth/action.yaml +++ b/gar-auth/action.yaml @@ -19,7 +19,7 @@ runs: name: "Authenticate to Google Cloud" uses: google-github-actions/auth@v1.1.1 with: - create_credentials_file: ${{ inputs.create_credentials_file }} + create_credentials_file: ${{ inputs.create_credentials_file == 'true' }} token_format: "access_token" workload_identity_provider: ${{ inputs.GCP_WORKLOAD_IDENTITY_PROVIDER }} service_account: ${{ inputs.GCP_SERVICE_ACCOUNT_EMAIL }}