Skip to content

ci: migrate ufo2ft PyPI publishing to OSS Exit Gate - #1022

Open
zarturod wants to merge 1 commit into
googlefonts:mainfrom
zarturod:chore/oss-exit-gate-migration
Open

zarturod wants to merge 1 commit into
googlefonts:mainfrom
zarturod:chore/oss-exit-gate-migration

Conversation

@zarturod

Copy link
Copy Markdown

Summary

Migrates ufo2ft PyPI publishing in the tag-triggered deploy job of .github/workflows/ci.yml to publish through Google's OSS Exit Gate (ufo2ft/pypi). lint, test, tag release-note extraction, GitHub Release creation, and pipx run build remain unchanged.

Changes

  • Keeps id-token: write scoped solely to the tag-gated deploy job (if: startsWith(github.ref, 'refs/tags/v')) and pins all GitHub Actions to 40-character commit SHAs (google-github-actions/auth, google-github-actions/setup-gcloud) with persist-credentials: false on checkouts for zizmor compliance.
  • Authenticates via Google Cloud Workload Identity Federation (projects/305452601764/locations/global/workloadIdentityPools/builders/providers/github).
  • Stages built sdist and bdist_wheel artifacts (dist/*) to https://us-python.pkg.dev/oss-exit-gate-prod/ufo2ft--pypi/ and uploads manifest.json to gs://oss-exit-gate-prod-projects-bucket/ufo2ft/pypi/manifests/ to trigger the OSS Exit Gate PyPI release pipeline (trusted publisher service account: ufo2ft-py@oss-exit-gate-prod.iam.gserviceaccount.com).

Verification (Step 8 Production Smoke Test)

  • Production onboarding config (ufo2ft/pypi, http://cl/1015458983) and Terraform provisioning (http://cl/1015465610) are live.
  • End-to-end Artifact Registry PyPI staging (ufo2ft==3.11.0, HTTP 200) and GCS manifest upload (HTTP 200) verified.

Refs: b/582483815, b/576680589

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