Closed toga4 closed 2 years ago
Thanks for the report! We are in the process of updating all actions to work with auth. I haven't merged the PR due to this.
Sounds great! I'm looking forward for all actions are updated. Thanks.
Apparently #93 has been merged and new version released, and now supports auth action. Thank you so much for your work! I'll close this issue.
@toga4 we have also updated the docs in https://github.com/google-github-actions/get-gke-credentials/pull/141 with auth
Action & WIF being our recommended approach.
TL;DR
google-github-actions/auth action generates external_account credentials, but currently this action doesn't work with external_account credentials. This behavior would fix after #93 merged because the PR includes a library update that google-auth-library now supports external_account. So please kindly merge it.
Expected behavior Successfully get GKE credentials using the credentials generated by the google-github-actions/auth action.
Observed behavior Failed with error message
The incoming JSON object does not contain a client_email field
Reproduction
Action YAML
Additional information As a workaround, get the credentials with gcloud CLI instead of using actions.