Google Cloud Engineer interview question

How do you give GitHub Actions access to Google Cloud without a service account key?

How you'd do it Asked in Cloud Engineer interviews

Members can save this page, take notes and track progress. See membership · Sign in

Summary

Create a workload identity pool with an OIDC provider for token.actions.githubusercontent.com, restrict it with an attribute condition to your repository (and branch or environment), allow that identity to impersonate a deployment service account, and use google-github-actions/auth with workload_identity_provider and service_account in the workflow.

Keep reading with a membership

The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.

See plans and free trial Already a member? Sign in

More Google Cloud Engineer questions

← All Google Cloud Engineer questions

Last reviewed · By the ByteCamel team · How we write content

Was this page helpful?

Report a mistake