Skip to content

ci: migrate PyPI publishing workflow to OSS Exit Gate - #203

Open
zarturod wants to merge 2 commits into
google:mainfrom
zarturod:chore/oss-exit-gate-migration
Open

zarturod wants to merge 2 commits into
google:mainfrom
zarturod:chore/oss-exit-gate-migration

Conversation

@zarturod

@zarturod zarturod commented Nov 27, 2026 •

Copy link
Copy Markdown

Summary

Migrates google-adk-community PyPI release publishing in .github/workflows/release-publish.yml to publish through Google's OSS Exit Gate (adk-python-community/pypi).

Changes

  • Scopes job permissions (id-token: write) to the publishing job and pins Google Cloud GitHub Actions to 40-character commit SHAs (google-github-actions/auth, google-github-actions/setup-gcloud).
  • Authenticates via Google Cloud Workload Identity Federation (projects/305452601764/locations/global/workloadIdentityPools/builders/providers/github).
  • Cleans up any prior staged packages in Artifact Registry (oss-exit-gate-prod/adk-python-community--pypi) before uploading to avoid stale artifacts.
  • Stages release artifacts to https://us-python.pkg.dev/oss-exit-gate-prod/adk-python-community--pypi/ and uploads manifest.json to gs://oss-exit-gate-prod-projects-bucket/adk-python-community/pypi/manifests/ to trigger the release pipeline.
  • Trusted Publisher Service Account: adk-python-community-py@oss-exit-gate-prod.iam.gserviceaccount.com
  • Preserves branch validation, uv build, and the merge-back PR creation step while replacing PYPI_TOKEN publishing with OSS Exit Gate.

Verification

  • Production onboarding configuration (adk-python-community/pypi) and infrastructure provisioning are live.
  • End-to-end Artifact Registry staging (google-adk-community==0.5.0) and GCS manifest upload (gs://oss-exit-gate-prod-projects-bucket/adk-python-community/pypi/manifests/manifest-test-1795634219-711.json) verified.

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