1.20.0 • Published 8 days ago

@sws2apps/github-gcloud-cli v1.20.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 days ago

GitHub GCloud CLI

A quickest way to setup the keyless authentication to Google Cloud from GitHub Action. We internally use the gcloud CLI to make this setup much easier. The detailed steps which our CLI is handling are found on this page: Setting up Workload Identity Federation.

Usage

Run the CLI by typing the following in the terminal:

npx @sws2apps/github-gcloud-cli setup

img1

A browser window will now open, and asks you to authenticate to the Google Cloud SDK. Complete the authentication in that window, and the CLI window will use the authentication token it gets:

img2

Provide the PROJECT_ID and the service account name to be created (if not provided, github-service-account will be used):

img3

A set of commands will be executed in the terminal to complete the Workload Identity Federation setup:

img5

Finally, add the two secrets generated at the end to corresponding GitHub repository:

img6

Note

DO NOT FORGET to add the necessary permissions to the service account created in the Google Cloud Console.

1.20.0

8 days ago

1.19.0

2 months ago

1.18.0

2 months ago

1.17.0

3 months ago

1.15.0

8 months ago

1.14.0

8 months ago

1.13.0

9 months ago

1.12.0

10 months ago

1.16.0

6 months ago

1.11.0

10 months ago

1.10.0

11 months ago

1.9.0

1 year ago

1.8.0

1 year ago

1.7.0

1 year ago

1.6.0

1 year ago

1.2.0

2 years ago

1.4.0

1 year ago

1.3.0

2 years ago

1.2.1

2 years ago

1.1.0

2 years ago

1.0.1

2 years ago