Repository navigation
feat(ng-dev/release): migrate release publishing from Wombat to OSS Exit Gate - #4124
Open
alan-agius4 wants to merge 1 commit into
Open
alan-agius4 wants to merge 1 commit into
alan-agius4 wants to merge 1 commit into
Conversation
alan-agius4
force-pushed
the
feat/migrate-wombat-to-exit-gate
branch
3 times, most recently
from
November 24, 2026 09:04
47fbf65 to
1fbdc3b
Compare
alan-agius4
marked this pull request as ready for review
November 24, 2026 14:12
There was a problem hiding this comment.
Code Review
This pull request replaces the Wombat (NPM) publishing flow with OSS Exit Gate publishing, staging pre-built packages to Google Cloud Artifact Registry and uploading a release manifest to GCS. It introduces ExitGateCommand to manage gcloud operations, updates the release and recovery tools, and hardens process sanitization in child-process.ts to redact sensitive credentials. Feedback from the review suggests expanding glob validation to prevent brace expansion, setting sensitiveOutput: true when spawning commands with GCP access tokens, and adding redaction patterns for GitHub tokens to further harden sanitization.
…xit Gate
Migrates CI release publishing, local release publishing, and CI publish
recovery from Wombat Dressing Room to OSS Exit Gate (staging packages to
Google Artifact Registry and uploading a publishing manifest to GCS):
- Add `ReleaseConfig.exitGate` (`{projectName}`) configuration and validation
with mutual exclusivity against `publishRegistry`.
- Add shared `ExitGateCommand` and Artifact Registry / GCS manifest helpers
in `ng-dev/release/versioning/exit-gate.ts` plus scoped `env` support on
`NpmCommand`.
- Update `reusable-release.yml` to authenticate via Workload Identity
Federation (`google-github-actions/auth@v3.0.0` + `setup-gcloud@v3.0.1`),
bind `environment: npm-publish` directly to the `publish` job, remove
`wombot-token`, and add `persist-credentials: false` on checkouts.
- Update `github-actions/release/publish` (`action.yml`, `main.ts`,
`publish-ci.ts`, `publish-summary.ts`, and checked-in `main.js`) to stage
packages to Artifact Registry using an isolated ephemeral `ar.npmrc`, check
existing versions against public `registry.npmjs.org`, trigger Exit Gate
via GCS manifest upload, and log manual deprecation follow-ups.
- Migrate `ng-dev release publish` and `ng-dev release recover-ci-publish`
from Wombat to Google Cloud ADC + OSS Exit Gate, fix `--stage-only`
skipping publish auth/logout, and fix the `release-packages` artifact name
mismatch in recovery.
- Harden token sanitization in `ChildProcess`, env scrubbing in build
workers, and symlink/path-traversal checks for release tarballs.
alan-agius4
force-pushed
the
feat/migrate-wombat-to-exit-gate
branch
from
November 24, 2026 14:25
1fbdc3b to
b554a2c
Compare
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
Migrates release publishing across CI (
reusable-release.ymlandgithub-actions/release/publish), local release tooling (ng-dev release publish), and CI publish recovery (ng-dev release recover-ci-publish) from Wombat Dressing Room to OSS Exit Gate (staging packages to Google Artifact Registry and uploading a publishing manifest to GCS).Key Changes
ng-dev/release/config)ReleaseConfig.exitGate?: { projectName: string }with strict project name validation and mutual exclusivity againstpublishRegistry.ng-dev/release/config/test/config.spec.ts.ng-dev/release/versioning)exit-gate.ts(ExitGateCommand+ AR/GCS/manifest/validation helpers) with isolatedar.npmrcenv-var indirection (:_authToken=${EXIT_GATE_AR_TOKEN},provenance=false, no raw tokens on disk) andCLOUDSDK_AUTH_ACCESS_TOKENforwarding for local ADC runs.envforwarding toNpmCommand.publish,checkVersionExists, anddeprecate..github/workflows/reusable-release.yml)wombot-tokensecret and added optionalexit-gate-projectinput.environment: npm-publishonto thepublishjob so dual-approval is cryptographically bound in the GitHub OIDCenvironmentclaim for GCP Workload Identity Federation.google-github-actions/auth@v3.0.0(WIF) andgoogle-github-actions/setup-gcloud@v3.0.1,persist-credentials: falseon all checkouts, and explicitpermissionsonbuild.github-actions/release/publish)wombot-tokenwith optionalexit-gate-projectinput inaction.ymlandlib/main.ts, loading config before token minting, deletingINPUT_ANGULAR-ROBOT-KEYafter minting, and masking dynamically acquired GCP tokens viacore.setSecret.PublishCiToolandPublishSummaryto check existing versions against publichttps://registry.npmjs.org/via isolatedempty.npmrc, clean stale AR packages, stage unpublished tarballs to AR, gate GCS manifest upload on 0 failures and >=1 staged package, warn onpkg.deprecatedmanual follow-ups, and enforce symlink/path-traversal checks on.tgzinputs.github-actions/release/publish/main.jsand updatedmain.spec.ts/publish-ci.spec.ts.ng-dev/release/publish,ng-dev/release/recover-ci-publish)--exit-gate-projectand local GCP ADC publishing support.--stage-onlyskipping publish auth checks andnpm logout.recover-ci-publishto GCP ADC + OSS Exit Gate, fixed therelease-packagesartifact name mismatch, and added expired-artifact detection.ng-dev/utils,ng-dev/release/build)ChildProcesstoken/secret sanitization (ya29.*,Authorization: Bearer/Basic,:_authToken=/:_password=, JWTs, error sanitization, andsensitiveOutput).BuildWorker(build/index.tsandbuild-worker.ts).Verification
pnpm bazel test //github-actions/release/publish/... //ng-dev/release/... //ng-dev/utils/...— 44/44 targets pass (including:main_test,:main_prettierignore_test, and strict-deps tests)pnpm bazel build //ng-dev:npm_package— passpnpm lint— passpnpm ng-dev format changed --check— passzizmoron.github/workflows/reusable-release.yml— 0 findingsFollow-Up / Onboarding Checklist (Before Taking Out of Draft)
_authTokenpublishing and scoped package cleanup/retry behavior under npm 11release.exitGate.projectNamein downstream repos'.ng-dev/release.mjsand dropwombot-tokenfrom caller workflows