Skip to content

ci: use Workload Identity for Chrome releases - #1550

Open
hamzahamidi wants to merge 1 commit into
responsively-org:mainfrom
hamzahamidi:codex/chrome-web-store-wif
Open

hamzahamidi wants to merge 1 commit into
responsively-org:mainfrom
hamzahamidi:codex/chrome-web-store-wif

Conversation

@hamzahamidi

Copy link
Copy Markdown

Summary

Moves Chrome Web Store publishing to API v2 with a 30-minute access token from GitHub OIDC and Google Workload Identity Federation.

Build, Chrome, and Firefox run in separate jobs. The Chrome job alone receives id-token: write, so the build dependencies do not run with permission to request the publishing token. The workflow adds a dry_run_chrome input for checking package and store access before upload.

Required setup

  1. Create a chrome-web-store environment that allows the main branch.
  2. Add CWS_PUBLISHER_ID, CWS_WIF_PROVIDER, and CWS_SERVICE_ACCOUNT as environment variables.
  3. Grant the Google service account access to the Chrome Web Store publisher account. Restrict Workload Identity Federation to this repository, the chrome-web-store environment, and main.
  4. Keep the existing CWS_EXTENSION_ID and AMO secrets. Use target: chrome and dry_run_chrome: true for a Chrome dry run.

Chrome API v2 uses the visibility configured in the Developer Dashboard. See Google's API v2 migration notes and the Action's Workload Identity Federation setup.

Disclosure: The PR submitter maintains the referenced Action.

Validation: git diff --check passed. The application build and tests were not run.

The Chrome upload CLI uses OAuth refresh tokens and the v1.1 API. Short-lived federation moves publishing credentials out of build dependencies and adopts API v2.

This branch has not been deployed

No deployments
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