Repository navigation
ci: use Workload Identity for Chrome releases - #1550
Open
hamzahamidi wants to merge 1 commit into
Open
hamzahamidi wants to merge 1 commit into
hamzahamidi wants to merge 1 commit into
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 adry_run_chromeinput for checking package and store access before upload.Required setup
chrome-web-storeenvironment that allows themainbranch.CWS_PUBLISHER_ID,CWS_WIF_PROVIDER, andCWS_SERVICE_ACCOUNTas environment variables.chrome-web-storeenvironment, andmain.CWS_EXTENSION_IDand AMO secrets. Usetarget: chromeanddry_run_chrome: truefor 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 --checkpassed. The application build and tests were not run.