🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

@sws2apps/github-gcloud-cli

Package Overview
Dependencies
Maintainers
2
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sws2apps/github-gcloud-cli

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

latest
Source
npmnpm
Version
1.27.0
Version published
Maintainers
2
Created
Source

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.

Keywords

github

FAQs

Package last updated on 14 Sep 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts