{"id":15756008,"url":"https://github.com/simenandre/setup-gke-gcloud-auth-plugin","last_synced_at":"2025-09-20T10:32:27.573Z","repository":{"id":152381340,"uuid":"624954607","full_name":"simenandre/setup-gke-gcloud-auth-plugin","owner":"simenandre","description":"Installs a pre-requisite for \"gcloud container clusters get-credentials\" command with a modern k8s client.","archived":false,"fork":false,"pushed_at":"2024-04-25T06:47:06.000Z","size":18,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-07T07:44:01.500Z","etag":null,"topics":["actions","github-actions","gke","google"],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/simenandre.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2023-04-07T17:19:46.000Z","updated_at":"2024-07-18T18:57:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"afbdf7d1-5630-408b-bd56-0581cfad6a58","html_url":"https://github.com/simenandre/setup-gke-gcloud-auth-plugin","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fsetup-gke-gcloud-auth-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fsetup-gke-gcloud-auth-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fsetup-gke-gcloud-auth-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/simenandre%2Fsetup-gke-gcloud-auth-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/simenandre","download_url":"https://codeload.github.com/simenandre/setup-gke-gcloud-auth-plugin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":233655315,"owners_count":18709257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["actions","github-actions","gke","google"],"created_at":"2024-10-04T08:41:30.538Z","updated_at":"2025-09-20T10:32:22.237Z","avatar_url":"https://github.com/simenandre.png","language":null,"readme":"# `simenandre/setup-gke-gcloud-auth-plugin`\n\n## ⚠️ This plugin is deprecated. See the [migration guide](#migration-guide-to-google-github-actionsget-gke-credentialsv2) for how to achieve the same using Google's own github action\n\nThis GitHub Actions installs a pre-requisite for \"gcloud container clusters get-credentials\"\ncommand with a modern k8s client.\n\n## Quickstart\n\n```yaml\n- uses: simenandre/setup-gke-gcloud-auth-plugin@v1\n```\n\n### Example\n\n```yaml\nname: On Push\n\npermissions:\n  id-token: write\n  contents: read\n\non:\n  push:\n    branches:\n      - main\n\njobs:\n  apply-changes:\n    steps:\n      - name: Checkout\n        uses: actions/checkout@v3\n\n      - name: Authenticate to GCP\n        uses: google-github-actions/auth@v1\n        with:\n          credentials_json: ${{ secrets.GOOGLE_PROJECT_SA_KEY }}\n          project_id: ${{ secrets.GOOGLE_PROJECT_ID }}\n\n      - uses: simenandre/setup-gke-gcloud-auth-plugin@v1\n\n      - uses: google-github-actions/get-gke-credentials@v1\n        with:\n          cluster_name: my-cluster\n          location: us-central1-a\n\n      # At this point you should be able to communicate with your cluster\n      - run: kubectl get pods\n```\n\n### Migration guide to [google-github-actions/get-gke-credentials@v2](https://github.com/google-github-actions/get-gke-credentials)\n\nAssuming this is your current setup using this plugin:\n\n```yaml\n- name: Authenticate to Google\n  uses: \"google-github-actions/auth@v1\"\n  with:\n    credentials_json: \"${{ secrets.GCP_SERVICEACCOUNT_KEY }}\"\n\n- uses: simenandre/setup-gke-gcloud-auth-plugin@v1\n\n- name: Authenticate to GKE cluster\n  uses: google-github-actions/get-gke-credentials@v1\n  with:\n    cluster_name: my_cluster\n    location: europe-west1-b\n```\n\nMigrating to get-gke-credentials can be done like so:\n\n```yaml\n- name: Authenticate to Google\n  uses: \"google-github-actions/auth@v2\"\n  with:\n    credentials_json: \"${{ secrets.GCP_SERVICEACCOUNT_KEY }}\"\n\n- uses: \"google-github-actions/setup-gcloud@v2\"\n  with:\n    install_components: \"gke-gcloud-auth-plugin\"\n\n- name: Authenticate to GKE cluster\n  uses: google-github-actions/get-gke-credentials@v2\n  with:\n    cluster_name: my_cluster\n    location: europe-west1-b\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimenandre%2Fsetup-gke-gcloud-auth-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimenandre%2Fsetup-gke-gcloud-auth-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimenandre%2Fsetup-gke-gcloud-auth-plugin/lists"}