diff --git a/actions/setup-credentials/action.yaml b/actions/setup-credentials/action.yaml index eb6b7ca54..b209c101d 100644 --- a/actions/setup-credentials/action.yaml +++ b/actions/setup-credentials/action.yaml @@ -15,7 +15,7 @@ inputs: required: true gcloud-sdk-version: description: "GCloud SDK version" - default: "376.0.0" + default: "508.0.0" required: false runs: using: "composite" @@ -26,7 +26,7 @@ runs: credentials_json: ${{ inputs.gke-service-account }} - name: Setup GCloud SDK - uses: google-github-actions/setup-gcloud@v0.6.0 + uses: google-github-actions/setup-gcloud@v2 with: version: ${{ inputs.gcloud-sdk-version }} project_id: ${{ inputs.gke-project }} @@ -34,6 +34,7 @@ runs: - name: Setup authentication shell: bash run: | + gcloud components install gke-gcloud-auth-plugin gcloud container clusters get-credentials "$GKE_CLUSTER" --region "$GKE_REGION" --project "$GKE_PROJECT" env: GKE_REGION: ${{ inputs.gke-region }} diff --git a/docs/actions/setup-credentials/README.md b/docs/actions/setup-credentials/README.md index 83896f4f7..e21b31f0c 100644 --- a/docs/actions/setup-credentials/README.md +++ b/docs/actions/setup-credentials/README.md @@ -24,7 +24,7 @@ steps: | INPUT | TYPE | REQUIRED | DEFAULT | DESCRIPTION | | ------------------- | ------ | -------- | ----------- | ------------------------------------------ | -| gcloud-sdk-version | string | false | `"376.0.0"` | GCloud SDK version | +| gcloud-sdk-version | string | false | `"508.0.0"` | GCloud SDK version | | gke-cluster | string | true | | GKE cluster for authentication | | gke-project | string | true | | GKE project id for authentication | | gke-region | string | true | | GKE region for authentication |