koalaops/Login to GCP GKE

Authenticates to GCP, configures GKE kubeconfig, and logs into GAR

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Nov 17, 2025
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: koalaops/login-gcp-gke@e395554457e97527379cf513fe0de60ceba5e79e # v1.2.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
credentials_jsonGCP Service Account JSON credentialsno
workload_identity_providerWorkload Identity Provider (for OIDC)no
service_accountService Account email (for OIDC)no
project_idGCP Project IDyes
locationGKE cluster location (region or zone)yes
cluster_nameGKE cluster nameno
gar_locationGoogle Artifact Registry location (defaults to cluster location)no
skip_gar_loginSkip Google Artifact Registry loginnofalse
namedescription
project_idGCP Project ID
gar_registryGoogle Artifact Registry URL
gar_logged_inWhether GAR login was performed
kubectl_contextKubectl context name