Skip to content

cli: document Google Cloud service-account auth#26

Merged
acoshift merged 1 commit into
mainfrom
registry-gcp-sa-cli
Jun 17, 2026
Merged

cli: document Google Cloud service-account auth#26
acoshift merged 1 commit into
mainfrom
registry-gcp-sa-cli

Conversation

@acoshift

Copy link
Copy Markdown
Member

What

Follow-up to docs#25 (which merged the API + registry sections): add the CLI half that didn't make it into that PR.

Documents driving the CLI with a Google Cloud service account — put a SA access token (carrying the userinfo.email scope, with the SA email granted the needed permissions) in DEPLOYS_TOKEN:

export DEPLOYS_TOKEN=$(gcloud auth print-access-token \
  --scopes=https://www.googleapis.com/auth/userinfo.email)
deploys me get

Cross-links the API auth section as the canonical reference.

Note

Routed through DEPLOYS_TOKEN (the Bearer path) rather than the CLI's ADC fallback: getDefaultToken() calls google.FindDefaultCredentials with no scopes, so the ADC path wouldn't reliably carry userinfo.email.

🤖 Generated with Claude Code

Show how to drive the CLI with a Google Cloud SA: put a SA access token (with the
userinfo.email scope) in DEPLOYS_TOKEN; cross-link the API auth section.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@deploys-app deploys-app Bot temporarily deployed to pr-26 June 17, 2026 06:11 Destroyed
@deploys-app

deploys-app Bot commented Jun 17, 2026

Copy link
Copy Markdown

Preview deleted (PR closed).

@acoshift acoshift merged commit bc95811 into main Jun 17, 2026
1 check passed
@acoshift acoshift deleted the registry-gcp-sa-cli branch June 17, 2026 06:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant