GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - sws2apps/github-gcloud-cli: CLI to setup Workload Identity Federation to Google Cloud for GitHub Actions

BranchesTags
Open more actions menu

Latest commit

 

History

460 Commits
460 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
commands
commands
 
 
.gitignore
.gitignore
 
 
.npmignore
.npmignore
 
 
.npmrc
.npmrc
 
 
CHANGELOG.md
CHANGELOG.md
 
 
CODE_OF_CONDUCT.md
CODE_OF_CONDUCT.md
 
 
CONTRIBUTING.md
CONTRIBUTING.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
SECURITY.md
SECURITY.md
 
 
index.js
index.js
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
release.config.cjs
release.config.cjs
 
 
semantic.yml
semantic.yml
 
 

Repository files navigation

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.

About

CLI to setup Workload Identity Federation to Google Cloud for GitHub Actions

www.npmjs.com/package/@sws2apps/github-gcloud-cli

Topics

gcloudgcloud-cligcloud-sdkgithubgithub-actionskeyless-auth

Resources

Readme
MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy
Activity
Custom properties

Stars

1 star

Watchers

1 watching

Forks

2 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.