setup-gcloud/auth
2019-01-18 14:55:09 +00:00
..
script Initial commit 2018-10-16 07:49:23 -07:00
test Initial commit 2018-10-16 07:49:23 -07:00
.dockerignore Initial commit 2018-10-16 07:49:23 -07:00
Dockerfile Initial commit 2018-10-16 07:49:23 -07:00
entrypoint.sh Initial commit 2018-10-16 07:49:23 -07:00
LICENSE Initial commit 2018-10-16 07:49:23 -07:00
Makefile Initial commit 2018-10-16 07:49:23 -07:00
README.md update READMEs 2019-01-18 14:55:09 +00:00
THIRD_PARTY_NOTICE.md Initial commit 2018-10-16 07:49:23 -07:00

GitHub Action for Google Cloud Auth

The GitHub Actions for Google Cloud Platform and wraps the gcloud SDK for authorizing a service account. This is a thin wrapper around the gcloud auth command, facilitating providing credentials securely using Secrets.

Usage

Example Workflow file

An example workflow to authenticate with Google Cloud Platform:

workflow "Run gcloud Login" {
  on = "push"
  resolves = "Load credentials"
}

action "Setup Google Cloud" {
  uses = "actions/gcloud/auth@master"
  secrets = ["GCLOUD_AUTH"]
}

Subsequent actions in the workflow will then be able to use gcloud as that user (see cli for examples).

Secrets

  • GCLOUD_AUTH Required Base64 encoded service account key exported as JSON
    • For information about service accout keys please see the Google Cloud docs
    • For information about using Credentials in Actions please see the Actions docs.

Example on encoding from a terminal : base64 ~/<account_id>.json

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.

Container images built with this project include third party materials. See THIRD_PARTY_NOTICE.md for details.